-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Milestone
Description
Bug Report
π Search Terms
parsing, await, yield
π Version & Regression Information
- This changed between versions 3.9.7 and now
β― Playground Link
π» Code
async function foo () {
var await = 1; // should be an error, but not
}
async function bar () {
let await = 2; // error
}
function * foo1() {
var yield = 1; // should be an error, but not
}
function * bar1() {
let yield = 2; // error
}
π Actual behavior
BindingIdentifier in await/yield with var
keyword does not throw errors.
π Expected behavior
It should.
Related: