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

Function assert_throws_js

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

* Assert a JS Error with the expected constructor is thrown. * * @param {object} constructor The expected exception constructor. * @param {Function} func Function which should throw. * @param {string} [description] Error description for the case that the error is not thrown.

(constructor, func, description)

Source from the content-addressed store, hash-verified

2178 * @param {string} [description] Error description for the case that the error is not thrown.
2179 */
2180 function assert_throws_js(constructor, func, description)
2181 {
2182 assert_throws_js_impl(constructor, func, description,
2183 "assert_throws_js");
2184 }
2185 expose_assert(assert_throws_js, "assert_throws_js");
2186
2187 /**

Callers 15

throwOrRejectFunction · 0.70
idlharness.jsFile · 0.70
interface.any.jsFile · 0.50
imports.any.jsFile · 0.50
constructor.any.jsFile · 0.50
exports.any.jsFile · 0.50

Calls 1

assert_throws_js_implFunction · 0.70

Tested by

no test coverage detected