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

Function NAN_MODULE_INIT

test/cpp/setcallhandler.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33NAN_MODULE_INIT(Init) {
34 Set(target
35 , New("a").ToLocalChecked()
36 , GetFunction(New<v8::FunctionTemplate>(CallHandlerSetter)).ToLocalChecked()
37 );
38 Set(target
39 , New("b").ToLocalChecked()
40 , GetFunction(New<v8::FunctionTemplate>(CallAsFunctionHandlerSetter))
41 .ToLocalChecked()
42 );
43}
44
45NODE_MODULE(setcallhandler, Init)
46

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