MCPcopy Create free account
hub / github.com/nodejs/node / assert_unreached

Function assert_unreached

test/fixtures/wpt/resources/testharness.js:2622–2625  ·  view source on GitHub ↗

* Asserts if called. Used to ensure that a specific codepath is * not taken e.g. that an error event isn't fired. * * @param {string} [description] - Description of the condition being tested.

(description)

Source from the content-addressed store, hash-verified

2620 * @param {string} [description] - Description of the condition being tested.
2621 */
2622 function assert_unreached(description) {
2623 assert(false, "assert_unreached", description,
2624 "Reached unreachable code");
2625 }
2626 expose_assert(assert_unreached, "assert_unreached");
2627
2628 /**

Callers 15

throwOrRejectFunction · 0.70
sriharness.jsFile · 0.70
SRIPreloadTestFunction · 0.70
testharness.jsFile · 0.70
"module2"Function · 0.50
assert_throws_wasmFunction · 0.50
hasFunction · 0.50
hasFunction · 0.50
promise_rejects_jspiFunction · 0.50
dummyFunction · 0.50

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected