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

Function CreateSymbolFromStringView

test/name.cc:89–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89Value CreateSymbolFromStringView(const CallbackInfo& info) {
90 return Symbol::New(info.Env(), std::string_view("hello2"));
91}
92
93Value CheckSymbol(const CallbackInfo& info) {
94 return Boolean::New(info.Env(), info[0].Type() == napi_symbol);

Callers

nothing calls this directly

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected