Treat "await" as an invalid identifier (#4954)
It is valid (outside `async` functions) in the "script" parse goal, but always invalid in the "module" parse goal. Fixes #4952.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
|
||||
var obj = { await: function () {} };
|
||||
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
|
||||
var obj = { await: function _await() {} };
|
||||
Reference in New Issue
Block a user