test: async iife in repl

PR-URL: https://github.com/nodejs/node/pull/44878
Fixes: https://github.com/nodejs/node/issues/38685
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Tony Gorez authored and GitHub committed 2025-11-08 22:03:18 +00:00
1 parent 38af5317b4
commit 60b9aaa3a9
1 file changed
+10
+10
View File
@@ -0,0 +1,10 @@
'use strict';
require('../common');
// Note: This test ensures that async IIFE doesn't crash
// Ref: https://github.com/nodejs/node/issues/38685
const repl = require('repl').start({ terminal: true });
repl.write('(async() => { })()\n');
repl.write('.exit\n');