Unify reserved word checking and update error messages (#9402)
* Unify reserved word checking and update error messages * Fix test
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Assigning to 'eval' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:14)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:14)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:14)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:14)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:1)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:1)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:36)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:36)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:36)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:36)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:47)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:47)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:47)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:47)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:32)"
|
||||
}
|
||||
"throws": "Assigning to 'eval' in strict mode (1:32)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:32)"
|
||||
}
|
||||
"throws": "Assigning to 'arguments' in strict mode (1:32)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:34)"
|
||||
}
|
||||
"throws": "Assigning to 'eval' in strict mode (1:34)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:34)"
|
||||
}
|
||||
"throws": "Assigning to 'eval' in strict mode (1:34)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:34)"
|
||||
}
|
||||
"throws": "Assigning to 'arguments' in strict mode (1:34)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:34)"
|
||||
}
|
||||
"throws": "Assigning to 'arguments' in strict mode (1:34)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:32)"
|
||||
}
|
||||
"throws": "Assigning to 'eval' in strict mode (1:32)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:32)"
|
||||
}
|
||||
"throws": "Assigning to 'eval' in strict mode (1:32)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:32)"
|
||||
}
|
||||
"throws": "Assigning to 'arguments' in strict mode (1:32)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:32)"
|
||||
}
|
||||
"throws": "Assigning to 'arguments' in strict mode (1:32)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:41)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:41)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:41)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:41)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:9)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:9)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:9)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:9)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:42)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:42)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:42)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:42)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:10)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:10)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:10)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:10)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:47)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:47)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "package is a reserved word in strict mode (1:10)"
|
||||
}
|
||||
"throws": "Binding 'package' in strict mode (1:10)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:48)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:48)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:41)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:41)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:49)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:49)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:48)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:48)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:48)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:48)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "implements is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'implements' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "interface is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'interface' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "package is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'package' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "private is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'private' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "protected is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'protected' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "public is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'public' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "static is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'static' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "yield is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'yield' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "let is a reserved word in strict mode (1:37)"
|
||||
"throws": "Unexpected reserved word 'let' (1:37)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "static is a reserved word in strict mode (1:15)"
|
||||
}
|
||||
"throws": "Binding 'static' in strict mode (1:15)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "static is a reserved word in strict mode (1:9)"
|
||||
}
|
||||
"throws": "Binding 'static' in strict mode (1:9)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:9)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:9)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "arguments is a reserved word in strict mode (1:9)"
|
||||
}
|
||||
"throws": "Binding 'arguments' in strict mode (1:9)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "static is a reserved word in strict mode (1:23)"
|
||||
"throws": "Unexpected reserved word 'static' (1:23)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:11)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:11)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "package is a reserved word in strict mode (1:11)"
|
||||
}
|
||||
"throws": "Binding 'package' in strict mode (1:11)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "eval is a reserved word in strict mode (1:12)"
|
||||
}
|
||||
"throws": "Binding 'eval' in strict mode (1:12)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "package is a reserved word in strict mode (1:12)"
|
||||
}
|
||||
"throws": "Binding 'package' in strict mode (1:12)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "enum is a reserved word (1:11)"
|
||||
"throws": "Unexpected reserved word 'enum' (1:11)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "static is a reserved word in strict mode (1:17)"
|
||||
"throws": "Unexpected reserved word 'static' (1:17)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user