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

Function NAN_METHOD

test/cpp/weak.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37NAN_METHOD(Hustle) {
38 async_resource = new AsyncResource("nan:test:weak");
39 cb.Reset(To<v8::Function>(info[1]).ToLocalChecked());
40 info.GetReturnValue().Set(wrap(To<v8::Function>(info[0]).ToLocalChecked()));
41}
42
43inline void WeakExternalCallback(const WeakCallbackInfo<void>&) {}
44

Callers

nothing calls this directly

Calls 6

ToLocalCheckedMethod · 0.80
wrapFunction · 0.70
ResetMethod · 0.45
SetMethod · 0.45
GetReturnValueMethod · 0.45
SetWeakMethod · 0.45

Tested by

no test coverage detected