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

Function canConstructRefFromExistingRef

test/function_reference.js:53–56  ·  view source on GitHub ↗
(binding)

Source from the content-addressed store, hash-verified

51}
52
53function canConstructRefFromExistingRef (binding) {
54 const testFunc = () => 240;
55 assert(binding.ConstructWithMove(testFunc) === 240);
56}
57
58function canCallFunctionWithDifferentOverloads (binding) {
59 let outsideRef = {};

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68