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

Function test

test/movable_callbacks.js:8–21  ·  view source on GitHub ↗
(binding)

Source from the content-addressed store, hash-verified

6module.exports = require('./common').runTest(binding => test(binding.movable_callbacks));
7
8async function test (binding) {
9 await testUtil.runGCTests([
10 'External',
11 () => {
12 const fn = common.mustCall(() => {
13 // noop
14 }, 1);
15 binding.createExternal(fn);
16 },
17 () => {
18 // noop, wait for gc
19 }
20 ]);
21}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected