Unify reserved word checking and update error messages (#9402)

* Unify reserved word checking and update error messages

* Fix test
This commit is contained in:
Daniel Tschinder
2019-01-31 19:02:32 -08:00
committed by GitHub
parent 7e9029e337
commit 9eb010da50
172 changed files with 347 additions and 331 deletions

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:36)"
}
"throws": "Binding 'eval' in strict mode (1:36)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:36)"
}
"throws": "Binding 'arguments' in strict mode (1:36)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:47)"
}
"throws": "Binding 'eval' in strict mode (1:47)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:47)"
}
"throws": "Binding 'arguments' in strict mode (1:47)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:32)"
}
"throws": "Assigning to 'eval' in strict mode (1:32)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:32)"
}
"throws": "Assigning to 'arguments' in strict mode (1:32)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:34)"
}
"throws": "Assigning to 'eval' in strict mode (1:34)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:34)"
}
"throws": "Assigning to 'eval' in strict mode (1:34)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:34)"
}
"throws": "Assigning to 'arguments' in strict mode (1:34)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:34)"
}
"throws": "Assigning to 'arguments' in strict mode (1:34)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:32)"
}
"throws": "Assigning to 'eval' in strict mode (1:32)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:32)"
}
"throws": "Assigning to 'eval' in strict mode (1:32)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:32)"
}
"throws": "Assigning to 'arguments' in strict mode (1:32)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:32)"
}
"throws": "Assigning to 'arguments' in strict mode (1:32)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:41)"
}
"throws": "Binding 'eval' in strict mode (1:41)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:41)"
}
"throws": "Binding 'arguments' in strict mode (1:41)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:9)"
}
"throws": "Binding 'eval' in strict mode (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:9)"
}
"throws": "Binding 'arguments' in strict mode (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:42)"
}
"throws": "Binding 'eval' in strict mode (1:42)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:42)"
}
"throws": "Binding 'arguments' in strict mode (1:42)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:10)"
}
"throws": "Binding 'eval' in strict mode (1:10)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:10)"
}
"throws": "Binding 'arguments' in strict mode (1:10)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:47)"
}
"throws": "Binding 'eval' in strict mode (1:47)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "package is a reserved word in strict mode (1:10)"
}
"throws": "Binding 'package' in strict mode (1:10)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:48)"
}
"throws": "Binding 'eval' in strict mode (1:48)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:41)"
}
"throws": "Binding 'eval' in strict mode (1:41)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:49)"
}
"throws": "Binding 'eval' in strict mode (1:49)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'eval' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'arguments' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:48)"
}
"throws": "Binding 'eval' in strict mode (1:48)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:48)"
}
"throws": "Binding 'arguments' in strict mode (1:48)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "implements is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'implements' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "interface is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'interface' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "package is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'package' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "private is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'private' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "protected is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'protected' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "public is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'public' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "static is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'static' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "static is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'static' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "static is a reserved word in strict mode (1:9)"
}
"throws": "Binding 'static' in strict mode (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "static is a reserved word in strict mode (1:23)"
"throws": "Unexpected reserved word 'static' (1:23)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:11)"
}
"throws": "Binding 'eval' in strict mode (1:11)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "package is a reserved word in strict mode (1:11)"
}
"throws": "Binding 'package' in strict mode (1:11)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:12)"
}
"throws": "Binding 'eval' in strict mode (1:12)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "package is a reserved word in strict mode (1:12)"
}
"throws": "Binding 'package' in strict mode (1:12)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "public is a reserved word in strict mode (2:8)"
"throws": "Unexpected reserved word 'public' (2:8)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "public is a reserved word in strict mode (1:8)"
"throws": "Unexpected reserved word 'public' (1:8)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (2:8)"
"throws": "Unexpected reserved word 'arguments' (2:8)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "arguments is a reserved word in strict mode (1:8)"
"throws": "Unexpected reserved word 'arguments' (1:8)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "this is a reserved word (1:6)"
"throws": "Unexpected keyword 'this' (1:6)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "let is a reserved word in strict mode (2:0)"
"throws": "Unexpected reserved word 'let' (2:0)"
}

View File

@@ -1,4 +1,4 @@
{
"plugins": ["flow"],
"throws": "default is a reserved word (1:9)"
"throws": "Unexpected keyword 'default' (1:9)"
}

View File

@@ -1,4 +1,4 @@
{
"plugins": ["flow"],
"throws": "typeof is a reserved word (1:9)"
"throws": "Unexpected keyword 'typeof' (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "typeof is a reserved word (1:9)"
"throws": "Unexpected keyword 'typeof' (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "debugger is a reserved word (1:9)"
"throws": "Unexpected keyword 'debugger' (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "const is a reserved word (1:11)"
"throws": "Unexpected keyword 'const' (1:11)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "this is a reserved word (1:8)"
"throws": "Unexpected keyword 'this' (1:8)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:44)"
}
"throws": "Binding 'eval' in strict mode (1:44)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:20)"
}
"throws": "Assigning to 'eval' in strict mode (1:20)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:20)"
}
"throws": "Assigning to 'arguments' in strict mode (1:20)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:15)"
}
"throws": "Assigning to 'eval' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:14)"
}
"throws": "Binding 'eval' in strict mode (1:14)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:14)"
}
"throws": "Binding 'arguments' in strict mode (1:14)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'eval' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "arguments is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'arguments' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'eval' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:5)"
}
"throws": "Binding 'eval' in strict mode (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:15)"
}
"throws": "Binding 'eval' in strict mode (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:1)"
}
"throws": "Binding 'eval' in strict mode (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:18)"
}
"throws": "Assigning to 'eval' in strict mode (1:18)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:16)"
"throws": "Unexpected reserved word 'eval' (1:16)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "eval is a reserved word in strict mode (1:4)"
}
"throws": "Assigning to 'eval' in strict mode (1:4)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "script",
"throws": "enum is a reserved word (1:0)"
}
"throws": "Unexpected reserved word 'enum' (1:0)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "enum is a reserved word (1:0)"
}
"throws": "Unexpected reserved word 'enum' (1:0)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "script",
"throws": "enum is a reserved word (1:6)"
}
"throws": "Unexpected reserved word 'enum' (1:6)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "enum is a reserved word (1:6)"
}
"throws": "Unexpected reserved word 'enum' (1:6)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "script",
"throws": "enum is a reserved word (1:8)"
}
"throws": "Unexpected reserved word 'enum' (1:8)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "enum is a reserved word (1:8)"
}
"throws": "Unexpected reserved word 'enum' (1:8)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "script",
"throws": "enum is a reserved word (1:15)"
}
"throws": "Unexpected reserved word 'enum' (1:15)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "enum is a reserved word (1:15)"
}
"throws": "Unexpected reserved word 'enum' (1:15)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "script",
"throws": "enum is a reserved word (1:9)"
}
"throws": "Unexpected reserved word 'enum' (1:9)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "enum is a reserved word (1:9)"
}
"throws": "Unexpected reserved word 'enum' (1:9)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "script",
"throws": "enum is a reserved word (1:6)"
}
"throws": "Unexpected reserved word 'enum' (1:6)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "enum is a reserved word (1:6)"
}
"throws": "Unexpected reserved word 'enum' (1:6)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:9)"
}
"throws": "Binding 'yield' in strict mode (1:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (2:9)"
"throws": "Unexpected reserved word 'yield' (2:9)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:16)"
"throws": "Unexpected reserved word 'yield' (1:16)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (2:16)"
"throws": "Unexpected reserved word 'yield' (2:16)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:12)"
}
"throws": "Binding 'yield' in strict mode (1:12)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (2:12)"
"throws": "Unexpected reserved word 'yield' (2:12)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "eval is a reserved word in strict mode (1:0)"
}
"throws": "Binding 'eval' in strict mode (1:0)"
}

View File

@@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "yield is a reserved word in strict mode (1:25)"
"throws": "Unexpected reserved word 'yield' (1:25)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:46)"
"throws": "Unexpected reserved word 'yield' (1:46)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:47)"
"throws": "Unexpected reserved word 'yield' (1:47)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:16)"
"throws": "Unexpected reserved word 'yield' (1:16)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:19)"
"throws": "Unexpected reserved word 'yield' (1:19)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:15)"
"throws": "Unexpected reserved word 'yield' (1:15)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:23)"
"throws": "Unexpected reserved word 'yield' (1:23)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:28)"
"throws": "Unexpected reserved word 'yield' (1:28)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "yield is a reserved word in strict mode (1:25)"
"throws": "Unexpected reserved word 'yield' (1:25)"
}

Some files were not shown because too many files have changed in this diff Show More