Lines Matching refs:parse_error
362 function parse_error(err) {
387 if (next_token.has_directive("use strict")) parse_error("Legacy octal literals are not allowed in strict mode");
392 if (isNaN(valid)) parse_error("Invalid syntax: " + num);
413 if (typeof str != "string") parse_error("Invalid escape sequence: \\" + seq);
429 parse_error("Legacy octal escape sequences are not allowed in strict mode");
438 else if (NEWLINE_CHARS[ch]) parse_error("Unterminated string constant");
482 if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
484 if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
499 parse_error("Unexpected line terminator");
522 parse_error(e.message);
573 if (ex === EX_EOF) parse_error(eof_error);
620 parse_error("Unexpected character '" + ch + "'");