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

Function NAN_METHOD

test/cpp/persistent.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static Persistent<v8::String> persistentTest1;
15
16NAN_METHOD(Save1) {
17 persistentTest1.Reset(To<v8::String>(info[0]).ToLocalChecked());
18}
19
20NAN_METHOD(Get1) {
21 info.GetReturnValue().Set(New(persistentTest1));

Callers

nothing calls this directly

Calls 6

passerFunction · 0.85
ToLocalCheckedMethod · 0.80
NewFunction · 0.50
ResetMethod · 0.45
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected