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

Function NAN_MODULE_INIT

test/cpp/asyncprogressqueueworker.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55NAN_MODULE_INIT(Init) {
56 Set(target
57 , New<v8::String>("doProgress").ToLocalChecked()
58 , GetFunction(New<v8::FunctionTemplate>(DoProgress)).ToLocalChecked());
59}
60
61NODE_MODULE(asyncprogressqueueworker, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected