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

Function expected

test/dataview/dataview_read_write.js:9–11  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

7
8function test (binding) {
9 function expected (type, value) {
10 return eval(`(new ${type}Array([${value}]))[0]`);
11 }
12
13 function nativeReadDataView (dataview, type, offset, value) {
14 return eval(`binding.dataview_read_write.get${type}(dataview, offset)`);

Callers 2

testReadDataFunction · 0.85
testWriteDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected