Skip to content

Commit 3047cf1

Browse files
shaman2009MylesBorins
authored andcommitted
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: #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>
1 parent f8b60e4 commit 3047cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/parallel/test-signal-safety.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ assert.throws(function() {
99
const s = new Signal();
1010
const nots = { start: s.start };
1111
nots.start(9);
12-
}, TypeError);
12+
}, /^TypeError: Illegal invocation$/);

0 commit comments

Comments
 (0)