mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
* Assign codes to the handful of errors reported by internal/process/*.js * Include documentation for the new error codes * Improve error messages * Improve test coverage for process.nextTick PR-URL: https://github.com/nodejs/node/pull/11294 Ref: https://github.com/nodejs/node/issues/11273 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
11 lines
313 B
JavaScript
11 lines
313 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
|
|
assert.throws(() => process.stdout.end(),
|
|
common.expectsError({
|
|
code: 'ERR_STDOUT_CLOSE',
|
|
type: Error,
|
|
message: 'process.stdout cannot be closed'
|
|
}));
|