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

Function NAN_METHOD

test/cpp/multifile2.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace Nan; // NOLINT(build/namespaces)
13
14NAN_METHOD(ReturnString) {
15 v8::Local<v8::String> s = New(*Utf8String(info[0])).ToLocalChecked();
16 info.GetReturnValue().Set(s);
17}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected