Throw error for reserved words enum and await (#195)

* Throw error for reserved words enum and await when source type is module

* Extract reserved word check into method

* Fix tests
This commit is contained in:
Kai Cataldo
2016-11-09 10:29:02 -05:00
committed by Daniel Tschinder
parent 643124744f
commit e260381e06
189 changed files with 1460 additions and 231 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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