mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
10
test/parallel/test-repl-async-iife.js
Normal file
10
test/parallel/test-repl-async-iife.js
Normal 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');
|
||||
Reference in New Issue
Block a user