test: check error with regex in test-signal-safety

Change TypeError to a regular expression in assert.throws() in
test/parallel/test-signal-safety.js.

PR-URL: https://github.com/nodejs/node/pull/14285
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
shaman authored and Jeremiah Senkpiel committed 2017-07-19 15:03:01 -04:00
1 parent 8010b2148f
commit e650fe07f4
1 file changed
+1 -1
+1 -1
View File
@@ -9,4 +9,4 @@ assert.throws(function() {
const s = new Signal();
const nots = { start: s.start };
nots.start(9);
}, TypeError);
}, /^TypeError: Illegal invocation$/);