node/test/parallel/test-repl-async-iife.js
Tony Gorez dc3000c504
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>
2026-02-24 00:36:43 +01:00

10 lines
263 B
JavaScript

'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');