Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node-addon-api
/ createWeakRef
Function
createWeakRef
test/object/finalizer.js:8–10 ·
view source on GitHub ↗
(binding, bindingToTest)
Source
from the content-addressed store, hash-verified
6
module.exports = require(
'../common'
).runTest(test);
7
8
function
createWeakRef (binding, bindingToTest) {
9
return
binding.object[bindingToTest]({});
10
}
11
12
function
test (binding) {
13
let
obj1;
Callers
1
test
Function · 0.85
Calls
no outgoing calls
Tested by
1
test
Function · 0.68