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

Function CreateNewSymbolWithCppStrDesc

test/symbol.cc:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12Symbol CreateNewSymbolWithCppStrDesc(const Napi::CallbackInfo& info) {
13 String cppStrKey = info[0].As<String>();
14 return Napi::Symbol::New(info.Env(), cppStrKey.Utf8Value());
15}
16
17Symbol CreateNewSymbolWithCStrDesc(const Napi::CallbackInfo& info) {
18 String cStrKey = info[0].As<String>();

Callers

nothing calls this directly

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected