Files
node/test/parallel/test-repl-async-iife.js

12 lines
322 B
JavaScript

'use strict';
require('../common');
const { startNewREPLServer } = require('../common/repl');
// Note: This test ensures that async IIFE doesn't crash
// Ref: https://github.com/nodejs/node/issues/38685
const { replServer } = startNewREPLServer();
replServer.write('(async() => { })()\n');
replServer.write('.exit\n');