MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / InitName

Function InitName

test/name.cc:107–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107Object InitName(Env env) {
108 Object exports = Object::New(env);
109
110 exports["echoString"] = Function::New(env, EchoString);
111 exports["createString"] = Function::New(env, CreateString);
112 exports["createStringFromStringView"] =
113 Function::New(env, CreateStringFromStringView);
114 exports["nullStringShouldThrow"] = Function::New(env, NullStringShouldThrow);
115 exports["nullString16ShouldThrow"] =
116 Function::New(env, NullString16ShouldThrow);
117 exports["checkString"] = Function::New(env, CheckString);
118 exports["createSymbol"] = Function::New(env, CreateSymbol);
119 exports["createSymbolFromStringView"] =
120 Function::New(env, CreateSymbolFromStringView);
121 exports["checkSymbol"] = Function::New(env, CheckSymbol);
122
123 return exports;
124}

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected