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

Function NAN_METHOD

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

Source from the content-addressed store, hash-verified

11using namespace Nan; // NOLINT(build/namespaces)
12
13NAN_METHOD(NewNumber) {
14 info.GetReturnValue().Set(New(0.5));
15}
16
17NAN_METHOD(NewNegativeInteger) {
18 info.GetReturnValue().Set(New(-1));

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected