MCPcopy Index your code
hub / github.com/nodejs/node / thrower

Function thrower

test/parallel/test-assert.js:122–124  ·  view source on GitHub ↗
(errorConstructor)

Source from the content-addressed store, hash-verified

120
121 // Testing the throwing.
122 function thrower(errorConstructor) {
123 throw new errorConstructor({});
124 }
125
126 // The basic calls work.
127 assert.throws(() => thrower(assert.AssertionError), assert.AssertionError, 'message');

Callers 3

test-assert.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…