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,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)"
}