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

Function FetchSymbolFromGlobalRegistry

test/symbol.cc:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Symbol FetchSymbolFromGlobalRegistry(const Napi::CallbackInfo& info) {
34 String registrySymbol = info[0].As<String>();
35 return MaybeUnwrap(Napi::Symbol::For(info.Env(), registrySymbol));
36}
37
38Symbol FetchSymbolFromGlobalRegistryWithCppKey(const Napi::CallbackInfo& info) {
39 String cppStringKey = info[0].As<String>();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected