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

Function InitSymbol

test/symbol.cc:66–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66Object InitSymbol(Env env) {
67 Object exports = Object::New(env);
68
69 exports["createNewSymbolWithNoArgs"] =
70 Function::New(env, CreateNewSymbolWithNoArgs);
71 exports["createNewSymbolWithCppStr"] =
72 Function::New(env, CreateNewSymbolWithCppStrDesc);
73 exports["createNewSymbolWithCStr"] =
74 Function::New(env, CreateNewSymbolWithCStrDesc);
75 exports["createNewSymbolWithNapi"] =
76 Function::New(env, CreateNewSymbolWithNapiString);
77 exports["getWellKnownSymbol"] = Function::New(env, GetWellknownSymbol);
78 exports["getSymbolFromGlobalRegistry"] =
79 Function::New(env, FetchSymbolFromGlobalRegistry);
80 exports["getSymbolFromGlobalRegistryWithCKey"] =
81 Function::New(env, FetchSymbolFromGlobalRegistryWithCKey);
82 exports["getSymbolFromGlobalRegistryWithCppKey"] =
83 Function::New(env, FetchSymbolFromGlobalRegistryWithCppKey);
84 exports["getSymbolFromGlobalRegistryWithStringViewKey"] =
85 Function::New(env, FetchSymbolFromGlobalRegistryWithStringViewKey);
86 exports["testUndefinedSymbolCanBeCreated"] =
87 Function::New(env, TestUndefinedSymbolsCanBeCreated);
88 exports["testNullSymbolCanBeCreated"] =
89 Function::New(env, TestNullSymbolsCanBeCreated);
90 return exports;
91}

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected