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

Function NAN_METHOD

test/cpp/asyncworkererror.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23NAN_METHOD(Work) {
24 Callback *callback = new Callback(To<v8::Function>(info[0]).ToLocalChecked());
25 AsyncQueueWorker(new ErrorWorker(callback));
26 info.GetReturnValue().SetUndefined();
27}
28
29NAN_MODULE_INIT(Init) {
30 Set(target

Callers

nothing calls this directly

Calls 4

AsyncQueueWorkerFunction · 0.85
ToLocalCheckedMethod · 0.80
SetUndefinedMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected