aboutsummaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-tty-stdout-end.js
blob: 2ec7ca9114db6f87b520a776487054d5c75656e3 (plain)
1
2
3
4
5
6
7
8
9
10
'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();