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

Function FetchSymbolFromGlobalRegistryWithCppKey

test/symbol.cc:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Symbol FetchSymbolFromGlobalRegistryWithCppKey(const Napi::CallbackInfo& info) {
39 String cppStringKey = info[0].As<String>();
40 return MaybeUnwrap(Napi::Symbol::For(info.Env(), cppStringKey.Utf8Value()));
41}
42
43Symbol FetchSymbolFromGlobalRegistryWithStringViewKey(
44 const Napi::CallbackInfo& info) {

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected