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

Function CreateNewSymbolWithCStrDesc

test/symbol.cc:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17Symbol CreateNewSymbolWithCStrDesc(const Napi::CallbackInfo& info) {
18 String cStrKey = info[0].As<String>();
19 return Napi::Symbol::New(info.Env(), cStrKey.Utf8Value().c_str());
20}
21
22Symbol CreateNewSymbolWithNapiString(const Napi::CallbackInfo& info) {
23 String strKey = info[0].As<String>();

Callers

nothing calls this directly

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected