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

Function NAN_MODULE_INIT

test/cpp/returnnull.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15NAN_MODULE_INIT(Init) {
16 Nan::Set(target
17 , Nan::New<v8::String>("r").ToLocalChecked()
18 , Nan::GetFunction(Nan::New<v8::FunctionTemplate>(ReturnNull))
19 .ToLocalChecked()
20 );
21}
22
23NODE_MODULE(returnnull, Init)
24

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected