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

Function thrower

test/parallel/test-assert-class.js:96–98  ·  view source on GitHub ↗
(errorConstructor)

Source from the content-addressed store, hash-verified

94 /* eslint-disable no-restricted-syntax */
95 {
96 function thrower(errorConstructor) {
97 throw new errorConstructor({});
98 }
99
100 let threw = false;
101 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…