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

Function assert_class_string

deps/v8/test/wasm-js/third_party/testharness.js:1448–1454  ·  view source on GitHub ↗
(object, class_string, description)

Source from the content-addressed store, hash-verified

1446 expose(assert_regexp_match, "assert_regexp_match");
1447
1448 function assert_class_string(object, class_string, description) {
1449 var actual = {}.toString.call(object);
1450 var expected = "[object " + class_string + "]";
1451 assert(same_value(actual, expected), "assert_class_string", description,
1452 "expected ${expected} but got ${actual}",
1453 {expected:expected, actual:actual});
1454 }
1455 expose(assert_class_string, "assert_class_string");
1456
1457

Callers

nothing calls this directly

Calls 3

assertFunction · 0.70
same_valueFunction · 0.70
callMethod · 0.45

Tested by

no test coverage detected