mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
300 B
15 lines
300 B
10 years ago
|
'use strict';
|
||
9 years ago
|
require('../common');
|
||
9 years ago
|
const assert = require('assert');
|
||
14 years ago
|
|
||
9 years ago
|
const shouldThrow = function() {
|
||
13 years ago
|
process.stdout.end();
|
||
9 years ago
|
};
|
||
|
|
||
|
const validateError = function(e) {
|
||
|
return e instanceof Error &&
|
||
|
e.message === 'process.stdout cannot be closed.';
|
||
|
};
|
||
13 years ago
|
|
||
9 years ago
|
assert.throws(shouldThrow, validateError);
|