Skip to content

Commit 8ebcb55

Browse files
binvbaduh95
authored andcommitted
Update test/parallel/test-repl-IIFE.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent f58dee4 commit 8ebcb55

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/parallel/test-repl-IIFE.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ function testNormalIIFE() {
2424

2525
function testAsyncIIEF() {
2626
const server = runRepl();
27-
const asyncFn = '(async() => {' +
28-
'await new Promise((resolve, reject) => {' +
29-
'resolve(true)' +
30-
'});' +
31-
'})()';
27+
const asyncFn = '(async() => true)();';
3228

3329
stream.run([asyncFn]);
3430
// promise output twice

0 commit comments

Comments
 (0)