Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/nan
/ NAN_MODULE_INIT
Function
NAN_MODULE_INIT
test/cpp/asyncworkererror.cpp:29–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
NAN_MODULE_INIT(Init) {
30
Set(target
31
, New(
"a"
).ToLocalChecked()
32
, GetFunction(New<v8::FunctionTemplate>(Work)).ToLocalChecked());
33
}
34
35
NODE_MODULE(asyncworkererror, Init)
Callers
nothing calls this directly
Calls
4
ToLocalChecked
Method · 0.80
Set
Function · 0.50
New
Function · 0.50
GetFunction
Function · 0.50
Tested by
no test coverage detected