MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / testInvalidRange

Function testInvalidRange

test/dataview/dataview.js:24–28  ·  view source on GitHub ↗
(factory, arrayBuffer, offset, length)

Source from the content-addressed store, hash-verified

22 }
23
24 function testInvalidRange (factory, arrayBuffer, offset, length) {
25 assert.throws(() => {
26 factory(arrayBuffer, offset, length);
27 }, RangeError);
28 }
29
30 const { hasSharedArrayBuffer, dataview } = binding;
31

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68