mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-25 06:24:27 +08:00
- 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.
5 lines
148 B
JavaScript
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());
|