Fix NumericLiteralSeparator SyntaxError message to match V8 (#743)
This commit is contained in:
parent
ab268877fd
commit
b8ba10532e
@ -733,7 +733,7 @@ export default class Tokenizer extends LocationParser {
|
||||
forbiddenSiblings.indexOf(next) > -1 ||
|
||||
Number.isNaN(next)
|
||||
) {
|
||||
this.raise(this.state.pos, "Invalid NumericLiteralSeparator");
|
||||
this.raise(this.state.pos, "Invalid or unexpected token");
|
||||
}
|
||||
|
||||
// Ignore this _ character
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:1)" }
|
||||
{ "throws": "Invalid or unexpected token (1:1)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:3)" }
|
||||
{ "throws": "Invalid or unexpected token (1:3)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
|
||||
{ "throws": "Invalid or unexpected token (1:5)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
|
||||
{ "throws": "Invalid or unexpected token (1:5)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:3)" }
|
||||
{ "throws": "Invalid or unexpected token (1:3)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:6)" }
|
||||
{ "throws": "Invalid or unexpected token (1:6)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
|
||||
{ "throws": "Invalid or unexpected token (1:5)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
|
||||
{ "throws": "Invalid or unexpected token (1:2)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:1)" }
|
||||
{ "throws": "Invalid or unexpected token (1:1)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:3)" }
|
||||
{ "throws": "Invalid or unexpected token (1:3)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:4)" }
|
||||
{ "throws": "Invalid or unexpected token (1:4)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
|
||||
{ "throws": "Invalid or unexpected token (1:5)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
|
||||
{ "throws": "Invalid or unexpected token (1:5)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:6)" }
|
||||
{ "throws": "Invalid or unexpected token (1:6)" }
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "throws": "Invalid NumericLiteralSeparator (1:6)" }
|
||||
{ "throws": "Invalid or unexpected token (1:6)" }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user