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

Function assert_throws_exactly

deps/v8/test/wasm-js/third_party/testharness.js:1784–1788  ·  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

1782 * @param {string} description Error description for the case that the error is not thrown.
1783 */
1784 function assert_throws_exactly(exception, func, description)
1785 {
1786 assert_throws_exactly_impl(exception, func, description,
1787 "assert_throws_exactly");
1788 }
1789 expose(assert_throws_exactly, "assert_throws_exactly");
1790
1791 /**

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected