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

Function NAN_MODULE_INIT

test/cpp/private.cpp:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66NAN_MODULE_INIT(Init) {
67 Set(target
68 , New<v8::String>("hasPrivateYes").ToLocalChecked()
69 , GetFunction(New<v8::FunctionTemplate>(HasPrivateYes)).ToLocalChecked()
70 );
71 Set(target
72 , New<v8::String>("hasPrivateNo").ToLocalChecked()
73 , GetFunction(New<v8::FunctionTemplate>(HasPrivateNo)).ToLocalChecked()
74 );
75 Set(target
76 , New<v8::String>("deletePrivateNo").ToLocalChecked()
77 , GetFunction(New<v8::FunctionTemplate>(DeletePrivateNo)).ToLocalChecked()
78 );
79 Set(target
80 , New<v8::String>("noConflict").ToLocalChecked()
81 , GetFunction(New<v8::FunctionTemplate>(NoConflict)).ToLocalChecked()
82 );
83}
84
85NODE_MODULE(private, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected