Skip to content

Commit 60b9aaa

Browse files
authored
test: async iife in repl
PR-URL: nodejs#44878 Fixes: nodejs#38685 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 38af531 commit 60b9aaa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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');

0 commit comments

Comments
 (0)