Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Fix NumericLiteralSeparator SyntaxError message to match V8 #743

Merged
merged 1 commit into from
Sep 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tokenizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:1)" }
{ "throws": "Invalid or unexpected token (1:1)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:3)" }
{ "throws": "Invalid or unexpected token (1:3)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
{ "throws": "Invalid or unexpected token (1:5)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
{ "throws": "Invalid or unexpected token (1:5)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:3)" }
{ "throws": "Invalid or unexpected token (1:3)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:6)" }
{ "throws": "Invalid or unexpected token (1:6)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
{ "throws": "Invalid or unexpected token (1:5)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:2)" }
{ "throws": "Invalid or unexpected token (1:2)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:1)" }
{ "throws": "Invalid or unexpected token (1:1)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:3)" }
{ "throws": "Invalid or unexpected token (1:3)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:4)" }
{ "throws": "Invalid or unexpected token (1:4)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
{ "throws": "Invalid or unexpected token (1:5)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:5)" }
{ "throws": "Invalid or unexpected token (1:5)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:6)" }
{ "throws": "Invalid or unexpected token (1:6)" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "throws": "Invalid NumericLiteralSeparator (1:6)" }
{ "throws": "Invalid or unexpected token (1:6)" }