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

Function CreateNewSymbolWithNapiString

test/symbol.cc:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22Symbol CreateNewSymbolWithNapiString(const Napi::CallbackInfo& info) {
23 String strKey = info[0].As<String>();
24 return Napi::Symbol::New(info.Env(), strKey);
25}
26
27Symbol GetWellknownSymbol(const Napi::CallbackInfo& info) {
28 String registrySymbol = info[0].As<String>();

Callers

nothing calls this directly

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected