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

Function assert

deps/v8/test/wasm-js/third_party/testharness.js:3435–3442  ·  view source on GitHub ↗
(expected_true, function_name, description, error, substitutions)

Source from the content-addressed store, hash-verified

3433 * Utility functions
3434 */
3435 function assert(expected_true, function_name, description, error, substitutions)
3436 {
3437 if (expected_true !== true) {
3438 var msg = make_message(function_name, description,
3439 error, substitutions);
3440 throw new AssertionError(msg);
3441 }
3442 }
3443
3444 function AssertionError(message)
3445 {

Callers 15

promise_testFunction · 0.70
promise_rejects_domFunction · 0.70
assert_trueFunction · 0.70
assert_falseFunction · 0.70
assert_equalsFunction · 0.70
assert_not_equalsFunction · 0.70
assert_in_arrayFunction · 0.70
assert_object_equalsFunction · 0.70
check_equalFunction · 0.70
assert_array_equalsFunction · 0.70
assert_approx_equalsFunction · 0.70

Calls 1

make_messageFunction · 0.70

Tested by

no test coverage detected