Lines Matching refs:raise

103   if (end === -1) this.raise(this.pos - 2, "Unterminated comment")
363 this.raise(this.pos, "Unexpected character '" + codePointToString(code) + "'")
380 …if (e instanceof SyntaxError) parser.raise(throwErrorAt, "Error parsing regular expression: " + e.…
391 if (this.pos >= this.input.length) this.raise(start, "Unterminated regular expression")
393 if (lineBreak.test(ch)) this.raise(start, "Unterminated regular expression")
411 if (!validFlags.test(mods)) this.raise(start, "Invalid regular expression flag")
426 if (code > 0x10FFFF) this.raise(start + offset + 3, "Code point out of bounds")
471 if (val == null) this.raise(this.start + 2, "Expected number in radix " + radix)
472 …if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, "Identifier directly after n…
480 if (!startsWithDot && this.readInt(10) === null) this.raise(start, "Invalid number")
492 if (this.readInt(10) === null) this.raise(start, "Invalid number")
495 …if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, "Identifier directly after n…
500 else if (/[89]/.test(str) || this.strict) this.raise(start, "Invalid number")
515 if (code > 0x10FFFF) this.raise(codePos, "Code point out of bounds")
532 if (this.pos >= this.input.length) this.raise(this.start, "Unterminated string constant")
540 if (isNewLine(ch)) this.raise(this.start, "Unterminated string constant")
553 if (this.pos >= this.input.length) this.raise(this.start, "Unterminated template")
623 this.raise(this.pos - 2, "Octal literal in strict mode")
637 if (n === null) this.raise(codePos, "Bad character escape sequence")
660 this.raise(this.pos, "Expecting Unicode escape sequence \\uXXXX")
664 this.raise(escStart, "Invalid Unicode escape")