Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node-addon-api
/ CreateExternal
Function
CreateExternal
test/external.cc:10–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
int finalizeCount = 0;
9
10
Value CreateExternal(const CallbackInfo& info) {
11
finalizeCount = 0;
12
return External<int>::New(info.Env(), &testData);
13
}
14
15
Value CreateExternalWithFinalize(const CallbackInfo& info) {
16
finalizeCount = 0;
Callers
nothing calls this directly
Calls
1
Env
Method · 0.80
Tested by
no test coverage detected