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:
Diogo Franco
2017-03-19 11:28:52 +09:00
committed by GitHub
parent 8859715893
commit 256fcbc58f
4 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export {};
var obj = { await: function () {} };

View File

@@ -0,0 +1,3 @@
export {};
var obj = { await: function _await() {} };