MCPcopy Create free account
hub / github.com/nodejs/nan / NAN_MODULE_INIT

Function NAN_MODULE_INIT

test/cpp/gc.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36NAN_MODULE_INIT(Init) {
37 Set(target
38 , New<v8::String>("hook").ToLocalChecked()
39 , GetFunction(New<v8::FunctionTemplate>(Hook)).ToLocalChecked()
40 );
41 Set(target
42 , New<v8::String>("check").ToLocalChecked()
43 , GetFunction(New<v8::FunctionTemplate>(Check)).ToLocalChecked()
44 );
45}
46
47NODE_MODULE(gc, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected