Skip to content

Commit cc312ab

Browse files
committed
test: async iife in repl
1 parent dc96633 commit cc312ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/parallel/test-repl-async-iife.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict'
2+
require('../common');
3+
4+
// Note: This test ensures that async IIFE doesn't crash
5+
// Ref: https://github.com/nodejs/node/issues/38685
6+
7+
const repl = require('repl').start({ terminal: true });
8+
9+
repl.write('(async() => { })()\n');
10+
repl.write('.exit\n');
11+

0 commit comments

Comments
 (0)