node/test/pseudo-tty/test-tty-stdout-end.js

11 lines
222 B
JavaScript

'use strict';
const common = require('../common');
process.on('uncaughtException', common.expectsError({
code: 'ERR_STDOUT_CLOSE',
type: Error,
message: 'process.stdout cannot be closed'
}));
process.stdout.end();