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

Function Init

test/binding.cc:92–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90Object InitFinalizerOrder(Env env);
91
92Object Init(Env env, Object exports) {
93#if (NAPI_VERSION > 5)
94 exports.Set("addon", InitAddon(env));
95 exports.Set("addon_data", InitAddonData(env));
96#endif
97 exports.Set("arraybuffer", InitArrayBuffer(env));
98 exports.Set("asynccontext", InitAsyncContext(env));
99#if (NAPI_VERSION > 3)
100 exports.Set("asyncprogressqueueworker", InitAsyncProgressQueueWorker(env));
101 exports.Set("asyncprogressworker", InitAsyncProgressWorker(env));
102#endif
103 exports.Set("globalObject", InitGlobalObject(env));
104 exports.Set("asyncworker", InitAsyncWorker(env));
105 exports.Set("persistentasyncworker", InitPersistentAsyncWorker(env));
106 exports.Set("basic_types_array", InitBasicTypesArray(env));
107 exports.Set("basic_types_boolean", InitBasicTypesBoolean(env));
108 exports.Set("basic_types_number", InitBasicTypesNumber(env));
109 exports.Set("basic_types_value", InitBasicTypesValue(env));
110#if (NAPI_VERSION > 5)
111 exports.Set("bigint", InitBigInt(env));
112#endif
113#if (NAPI_VERSION > 4)
114 exports.Set("date", InitDate(env));
115#endif
116 exports.Set("buffer", InitBuffer(env));
117 exports.Set("bufferNoExternal", InitBufferNoExternal(env));
118#if (NAPI_VERSION > 2)
119 exports.Set("callbackscope", InitCallbackScope(env));
120#endif
121 exports.Set("callbackInfo", InitCallbackInfo(env));
122 exports.Set("dataview", InitDataView(env));
123 exports.Set("dataview_read_write", InitDataView(env));
124 exports.Set("dataview_read_write", InitDataViewReadWrite(env));
125#if (NAPI_VERSION > 2)
126 exports.Set("env_cleanup", InitEnvCleanup(env));
127#endif
128 exports.Set("error", InitError(env));
129 exports.Set("errorHandlingPrim", InitErrorHandlingPrim(env));
130 exports.Set("external", InitExternal(env));
131 exports.Set("function", InitFunction(env));
132 exports.Set("functionreference", InitFunctionReference(env));
133 exports.Set("name", InitName(env));
134 exports.Set("handlescope", InitHandleScope(env));
135 exports.Set("movable_callbacks", InitMovableCallbacks(env));
136 exports.Set("memory_management", InitMemoryManagement(env));
137 exports.Set("object", InitObject(env));
138#ifndef NODE_ADDON_API_DISABLE_DEPRECATED
139 exports.Set("object_deprecated", InitObjectDeprecated(env));
140#endif // !NODE_ADDON_API_DISABLE_DEPRECATED
141 exports.Set("promise", InitPromise(env));
142 exports.Set("run_script", InitRunScript(env));
143 exports.Set("symbol", InitSymbol(env));
144 exports.Set("sharedarraybuffer", InitSharedArrayBuffer(env));
145#if (NAPI_VERSION > 3)
146 exports.Set("threadsafe_function_ctx", InitThreadSafeFunctionCtx(env));
147 exports.Set("threadsafe_function_exception",
148 InitThreadSafeFunctionException(env));
149 exports.Set("threadsafe_function_existing_tsfn",

Callers 3

AddonMethod · 0.70
AddonFactoryFunction · 0.70
CreateAddonFunction · 0.70

Calls 15

InitAddonFunction · 0.85
InitAddonDataFunction · 0.85
InitArrayBufferFunction · 0.85
InitAsyncContextFunction · 0.85
InitAsyncProgressWorkerFunction · 0.85
InitGlobalObjectFunction · 0.85
InitAsyncWorkerFunction · 0.85
InitBasicTypesArrayFunction · 0.85
InitBasicTypesBooleanFunction · 0.85
InitBasicTypesNumberFunction · 0.85

Tested by

no test coverage detected