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>
10 lines
263 B
JavaScript
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');
|