Skip to content

Commit

Permalink
Update test/parallel/test-repl-preprocess-top-level-await.js
Browse files Browse the repository at this point in the history
Co-authored-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
DonJayamanne and RaisinTen committed Aug 14, 2021
1 parent 764154c commit aa5e38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-repl-preprocess-top-level-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const testCases = [
[ 'for (const i in {x:1}) { await 1 }',
'(async () => { for (const i in {x:1}) { await 1 } })()'],
[ 'var x = await foo(); async function foo() { return Promise.resolve(1);}',
'var x; var foo; (async () => {void (x = await foo()); this.foo = foo; ' +
'var x; var foo; (async () => { void (x = await foo()); this.foo = foo; ' +
'async function foo() { return Promise.resolve(1);} })()'],
];

Expand Down

0 comments on commit aa5e38b

Please sign in to comment.