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

Function GetWellknownSymbol

test/symbol.cc:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27Symbol GetWellknownSymbol(const Napi::CallbackInfo& info) {
28 String registrySymbol = info[0].As<String>();
29 return MaybeUnwrap(
30 Napi::Symbol::WellKnown(info.Env(), registrySymbol.Utf8Value().c_str()));
31}
32
33Symbol FetchSymbolFromGlobalRegistry(const Napi::CallbackInfo& info) {
34 String registrySymbol = info[0].As<String>();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected