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: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: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: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": "yield is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'yield' (1:37)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "let is a reserved word in strict mode (1:37)"
"throws": "Unexpected reserved word 'let' (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": "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": "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": "enum is a reserved word (1:11)"
"throws": "Unexpected reserved word 'enum' (1:11)"
}

View File

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