mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
errors, child_process: migrate to using internal/errors
PR-URL: https://github.com/nodejs/node/pull/11300 Ref: https://github.com/nodejs/node/issues/11273 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
f0b702555a
commit
76327613af
10 changed files with 111 additions and 33 deletions
|
@ -185,7 +185,8 @@ if (!common.isWindows) {
|
|||
{
|
||||
// Validate the killSignal option
|
||||
const typeErr = /^TypeError: "killSignal" must be a string or number$/;
|
||||
const unknownSignalErr = /^Error: Unknown signal:/;
|
||||
const unknownSignalErr =
|
||||
common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL' });
|
||||
|
||||
pass('killSignal', undefined);
|
||||
pass('killSignal', null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue