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

Function NAN_METHOD

test/cpp/news.cpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21static int magic = 1337;
22
23NAN_METHOD(NewNumber) {
24 info.GetReturnValue().Set(New<v8::Number>(0.5));
25}
26
27NAN_METHOD(NewNegativeInteger) {
28 info.GetReturnValue().Set(New<v8::Integer>(-1));

Callers

nothing calls this directly

Calls 8

NewOneByteStringFunction · 0.85
RunScriptFunction · 0.85
CompileScriptFunction · 0.85
ToLocalCheckedMethod · 0.80
NewFunction · 0.50
GetExternalValueFunction · 0.50
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected