Skip to content

Commit 9b25d6c

Browse files
committed
fixup!
1 parent b00e3d5 commit 9b25d6c

3 files changed

Lines changed: 17 additions & 269 deletions

File tree

β€Žtest/parallel/test-repl-top-level-await.jsβ€Ž

Lines changed: 0 additions & 230 deletions
This file was deleted.

β€Žtest/parallel/test-repl-uncaught-exception-standalone.jsβ€Ž

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import '../common/index.mjs';
2+
import assert from 'node:assert';
3+
import { startNewREPLServer } from '../common/repl.js';
4+
5+
const { replServer, output, run } = startNewREPLServer();
6+
7+
await run('x\n');
8+
await run(
9+
'process.on("uncaughtException", () => console.log("Foobar"));' +
10+
'console.log("short")\n');
11+
await run('x\n');
12+
13+
assert.match(output.accumulator, /ReferenceError: x is not defined/);
14+
assert.match(output.accumulator, /short/);
15+
assert.match(output.accumulator, /Foobar/);
16+
17+
replServer.close();

0 commit comments

Comments
Β (0)