MCPcopy 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
29NAN_MODULE_INIT(Init) {
30 Set(target
31 , New("a").ToLocalChecked()
32 , GetFunction(New<v8::FunctionTemplate>(Work)).ToLocalChecked());
33}
34
35NODE_MODULE(asyncworkererror, Init)

Callers

nothing calls this directly

Calls 4

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
NewFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected