MCPcopy Create free account
hub / github.com/nodejs/nan / NAN_METHOD

Function NAN_METHOD

test/cpp/strings.cpp:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace Nan; // NOLINT(build/namespaces)
12
13NAN_METHOD(ReturnUtf8String) {
14 info.GetReturnValue().Set(New(*Utf8String(info[0])).ToLocalChecked());
15}
16
17NAN_METHOD(HeapString) {
18 Utf8String *s = new Utf8String(info[0]);

Callers

nothing calls this directly

Calls 6

Utf8StringClass · 0.85
ToLocalCheckedMethod · 0.80
NewFunction · 0.50
EncodeFunction · 0.50
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected