Big props to @bakkot for mentioning that yield shouldn't be applied the same treatment. Fixes #728
13 lines
206 B
JavaScript
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());
|
|
}
|