MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Init

Function Init

test/except_all.cc:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15Object Init(Env env, Object exports) {
16 exports.Set("throwStdException", Napi::Function::New(env, ThrowStdException));
17 exports.Set("throwPrimitiveException",
18 Napi::Function::New(env, ThrowPrimitiveException));
19 return exports;
20}
21
22NODE_API_MODULE(addon, Init)

Callers

nothing calls this directly

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected