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

Function assert_ArrayBuffer

test/fixtures/wpt/wasm/jsapi/module/customSections.any.js:4–8  ·  view source on GitHub ↗
(buffer, expected)

Source from the content-addressed store, hash-verified

2// META: script=/wasm/jsapi/wasm-module-builder.js
3
4function assert_ArrayBuffer(buffer, expected) {
5 assert_equals(Object.getPrototypeOf(buffer), ArrayBuffer.prototype, "Prototype");
6 assert_true(Object.isExtensible(buffer), "isExtensible");
7 assert_array_equals(new Uint8Array(buffer), expected);
8}
9
10function assert_sections(sections, expected) {
11 assert_true(Array.isArray(sections), "Should be array");

Callers 1

assert_sectionsFunction · 0.70

Calls 3

assert_equalsFunction · 0.50
assert_trueFunction · 0.50
assert_array_equalsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…