Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
using namespace Nan; // NOLINT(build/namespaces)
13
14
NAN_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
Utf8String
Class · 0.85
ToLocalChecked
Method · 0.80
New
Function · 0.50
Set
Method · 0.45
GetReturnValue
Method · 0.45
Tested by
no test coverage detected