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

Function assert_exported_function

test/fixtures/wpt/wasm/jsapi/assertions.js:21–32  ·  view source on GitHub ↗
(fn, { name, length }, description)

Source from the content-addressed store, hash-verified

19globalThis.assert_function_length = assert_function_length;
20
21function assert_exported_function(fn, { name, length }, description) {
22 if (WebAssembly.Function === undefined) {
23 assert_equals(Object.getPrototypeOf(fn), Function.prototype,
24 `${description}: prototype`);
25 } else {
26 assert_equals(Object.getPrototypeOf(fn), WebAssembly.Function.prototype,
27 `${description}: prototype`);
28 }
29
30 assert_function_name(fn, name, description);
31 assert_function_length(fn, length, description);
32}
33globalThis.assert_exported_function = assert_exported_function;
34
35function assert_Instance(instance, expected_exports) {

Callers 1

assert_InstanceFunction · 0.85

Calls 3

assert_function_nameFunction · 0.85
assert_function_lengthFunction · 0.85
assert_equalsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…