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

Function NAN_MODULE_INIT

test/cpp/bufferworkerpersistent.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61NAN_MODULE_INIT(Init) {
62 Set(target
63 , New<v8::String>("a").ToLocalChecked()
64 , GetFunction(New<v8::FunctionTemplate>(DoSleep)).ToLocalChecked());
65}
66
67NODE_MODULE(bufferworkerpersistent, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected