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

Function NAN_MODULE_INIT

test/cpp/json-stringify.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64NAN_MODULE_INIT(Init) {
65 Nan::Set(target
66 , Nan::New<v8::String>("stringify").ToLocalChecked()
67 , Nan::GetFunction(Nan::New<v8::FunctionTemplate>(Stringify))
68 .ToLocalChecked()
69 );
70}
71
72NODE_MODULE(stringify, Init)

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected