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

Function assert_throws_exactly

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

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

(exception, func, description)

Source from the content-addressed store, hash-verified

2585 * @param {string} [description] Error description for the case that the error is not thrown.
2586 */
2587 function assert_throws_exactly(exception, func, description)
2588 {
2589 assert_throws_exactly_impl(exception, func, description,
2590 "assert_throws_exactly");
2591 }
2592 expose_assert(assert_throws_exactly, "assert_throws_exactly");
2593
2594 /**

Calls 1

Tested by

no test coverage detected