MCPcopy
hub / github.com/mishoo/UglifyJS-old / unexpected

Function unexpected

lib/parse-js.js:743–747  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

741 };
742
743 function unexpected(token) {
744 if (token == null)
745 token = S.token;
746 token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")");
747 };
748
749 function expect_token(type, val) {
750 if (is(type, val)) {

Callers 7

semicolonFunction · 0.85
parseFunction · 0.85
labeled_statementFunction · 0.85
function_Function · 0.85
block_Function · 0.85
vardefsFunction · 0.85
as_nameFunction · 0.85

Calls 1

token_errorFunction · 0.85

Tested by

no test coverage detected