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

Function NAN_MODULE_INIT

test/cpp/weak.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51NAN_MODULE_INIT(Init) {
52 Set(target
53 , New<v8::String>("hustle").ToLocalChecked()
54 , GetFunction(New<v8::FunctionTemplate>(Hustle)).ToLocalChecked()
55 );
56 Set(target
57 , New<v8::String>("weakExternal").ToLocalChecked()
58 , GetFunction(New<v8::FunctionTemplate>(WeakExternal)).ToLocalChecked()
59 );
60}
61
62NODE_MODULE(weak, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected