mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
dgram,process,util: refactor Error to TypeError
PR-URL: https://github.com/nodejs/node/pull/13857 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
1698c8e165
commit
1a452f1928
8 changed files with 8 additions and 8 deletions
|
@ -186,7 +186,7 @@ if (!common.isWindows) {
|
|||
// Validate the killSignal option
|
||||
const typeErr = /^TypeError: "killSignal" must be a string or number$/;
|
||||
const unknownSignalErr =
|
||||
common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL' });
|
||||
common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL', type: TypeError });
|
||||
|
||||
pass('killSignal', undefined);
|
||||
pass('killSignal', null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue