This commit is contained in:
Dmitry Vasilev
2022-12-22 22:14:36 +08:00
parent 23429845d2
commit 4dbc7c26e2
6 changed files with 102 additions and 46 deletions

View File

@@ -3,7 +3,9 @@
export const reserved = [
'break',
'case',
'catch',
// TODO: fix parser to allow catch be an Object key, as other reserved words.
// Currently we make exception for promise.catch
// 'catch',
'class',
'const',
'continue',
@@ -14,7 +16,9 @@ export const reserved = [
'else',
'export',
'extends',
'finally',
// TODO: fix parser to allow finally be an Object key, as other reserved words.
// Currently we make exception for promise.finally
// 'finally',
'for',
'function',
'if',