Files
test-repo/tests/async/await_parse.js
T
Christopher Chedeau 135a3dd0a7 Remove extra parenthesis around await inside of unary expression (#745)
Big props to @bakkot for mentioning that yield shouldn't be applied the same treatment.

Fixes #728
2017-02-20 09:14:33 -05:00

13 lines
206 B
JavaScript

async function f() { (await f()).length }
async function g() {
invariant(
(await driver.navigator.getUrl()).substr(-7)
);
}
function *f(){
!(yield a);
}
async function f() {
a = !(await f());
}