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,4 +1,4 @@
|
||||
{
|
||||
"plugins": ["flow"],
|
||||
"throws": "default is a reserved word (1:9)"
|
||||
"throws": "Unexpected keyword 'default' (1:9)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"plugins": ["flow"],
|
||||
"throws": "typeof is a reserved word (1:9)"
|
||||
"throws": "Unexpected keyword 'typeof' (1:9)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "typeof is a reserved word (1:9)"
|
||||
"throws": "Unexpected keyword 'typeof' (1:9)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "debugger is a reserved word (1:9)"
|
||||
"throws": "Unexpected keyword 'debugger' (1:9)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user