enhance awaits (#4969)

This commit is contained in:
Alex Lam S.L
2021-05-27 17:57:14 +01:00
committed by GitHub
parent 362abe0ffb
commit ab42a90edb
2 changed files with 61 additions and 22 deletions

View File

@@ -227,9 +227,7 @@ inline_await_1_trim: {
console.log("PASS");
}
expect: {
(async function() {
await 0;
})();
void 0;
console.log("PASS");
}
expect_stdout: "PASS"
@@ -334,7 +332,7 @@ inline_await_3_trim: {
}
expect: {
(async function() {
return a = "PASS", b = console.log, await b(a);
return a = "PASS", b = console.log, b(a);
var a, b;
})();
}