minor clean-up (#5209)

This commit is contained in:
Alex Lam S.L
2021-12-08 21:14:57 +00:00
committed by GitHub
parent bc27966a19
commit d11c82f8ca
3 changed files with 50 additions and 5 deletions

View File

@@ -340,6 +340,33 @@ inline_await_3_trim: {
node_version: ">=8"
}
inline_await_this: {
options = {
awaits: true,
inline: true,
}
input: {
var p = "FAIL";
({
p: "PASS",
async f() {
return await (async () => this.p)();
},
}).f().then(console.log);
}
expect: {
var p = "FAIL";
({
p: "PASS",
async f() {
return await this.p;
},
}).f().then(console.log);
}
expect_stdout: "PASS"
node_version: ">=8"
}
await_unary: {
options = {
awaits: true,