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

Function NAN_METHOD

test/cpp/asyncprogressworkersignal.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49NAN_METHOD(DoProgress) {
50 Callback *progress = new Callback(To<v8::Function>(info[2]).ToLocalChecked());
51 Callback *callback = new Callback(To<v8::Function>(info[3]).ToLocalChecked());
52 AsyncQueueWorker(new ProgressWorker(
53 callback
54 , progress
55 , To<uint32_t>(info[0]).FromJust()
56 , To<uint32_t>(info[1]).FromJust()));
57}
58
59NAN_MODULE_INIT(Init) {
60 Set(target

Callers

nothing calls this directly

Calls 3

AsyncQueueWorkerFunction · 0.85
ToLocalCheckedMethod · 0.80
FromJustMethod · 0.80

Tested by

no test coverage detected