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 <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f8b60e4 commit 3047cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)