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

Function NAN_MODULE_INIT

test/cpp/asyncworker.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36NAN_MODULE_INIT(Init) {
37 Set(target
38 , New<v8::String>("a").ToLocalChecked()
39 , GetFunction(New<v8::FunctionTemplate>(DoSleep)).ToLocalChecked());
40}
41
42NODE_MODULE(asyncworker, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected