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

Function NAN_METHOD

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

Source from the content-addressed store, hash-verified

11using namespace Nan; // NOLINT(build/namespaces)
12
13NAN_METHOD(ToBoolean) {
14 info.GetReturnValue().Set(To<v8::Boolean>(info[0]).ToLocalChecked());
15}
16
17NAN_METHOD(ToNumber) {
18 info.GetReturnValue().Set(To<v8::Number>(info[0]).ToLocalChecked());

Callers

nothing calls this directly

Calls 8

ToLocalCheckedMethod · 0.80
FromJustMethod · 0.80
ToDetailStringFunction · 0.50
ToArrayIndexFunction · 0.50
NewFunction · 0.50
SetMethod · 0.45
GetReturnValueMethod · 0.45
FromMaybeMethod · 0.45

Tested by

no test coverage detected