Files
scriptc/tests/fixtures/event-loop/stdio-paused-exit.mjs
Chris Tate a36b356a6c Support native callable properties and terminal streams
- Preserve callable properties, descriptors, and shared module bindings across native JavaScript code.
- Add stored process streams with input control, output callbacks, and write interception.
- Preserve Error identity and classification through native rethrows and promise rejection.
2026-09-29 00:52:01 -05:00

5 lines
148 B
JavaScript

const input = process.stdin;
input.on('data', () => { throw new Error('paused data ran'); });
input.pause();
console.log('exit', input.isPaused());