Skip to content

Commit 602e6b5

Browse files
tony-goaduh95
authored andcommitted
test: async iife in repl
1 parent 38af531 commit 602e6b5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
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)