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

Function NAN_METHOD

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

Source from the content-addressed store, hash-verified

11using namespace Nan; // NOLINT(build/namespaces)
12
13NAN_METHOD(CallHandler) {
14 info.GetReturnValue().Set(12);
15}
16
17NAN_METHOD(CallHandlerSetter) {
18 v8::Local<v8::FunctionTemplate> tpl = New<v8::FunctionTemplate>();

Callers

nothing calls this directly

Calls 7

SetCallHandlerFunction · 0.85
SetCallAsFunctionHandlerFunction · 0.85
ToLocalCheckedMethod · 0.80
GetFunctionFunction · 0.50
NewInstanceFunction · 0.50
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected