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

Function NAN_METHOD

test/cpp/nancallback.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace Nan; // NOLINT(build/namespaces)
12
13NAN_METHOD(GlobalContext) {
14 AsyncResource resource("nan:test.nancallback");
15 Callback(To<v8::Function>(info[0]).ToLocalChecked()).Call(0, NULL, &resource);
16}
17
18NAN_METHOD(SpecificContext) {
19 AsyncResource resource("nan:test.nancallback");

Callers

nothing calls this directly

Calls 12

CallbackClass · 0.85
GetCurrentContextFunction · 0.85
TrueFunction · 0.85
FalseFunction · 0.85
CallMethod · 0.80
ToLocalCheckedMethod · 0.80
CallFunction · 0.50
GlobalMethod · 0.45
SetMethod · 0.45
GetReturnValueMethod · 0.45
ResetMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected