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

Function NAN_METHOD

test/cpp/asyncprogressworkerstream.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69};
70
71NAN_METHOD(DoProgress) {
72 Callback *progress = new Callback(To<v8::Function>(info[2]).ToLocalChecked());
73 Callback *callback = new Callback(To<v8::Function>(info[3]).ToLocalChecked());
74 AsyncQueueWorker(new ProgressWorker<data_t>(
75 callback
76 , progress
77 , To<uint32_t>(info[0]).FromJust()
78 , To<uint32_t>(info[1]).FromJust()));
79}
80
81NAN_MODULE_INIT(Init) {
82 Set(target

Callers

nothing calls this directly

Calls 3

AsyncQueueWorkerFunction · 0.85
ToLocalCheckedMethod · 0.80
FromJustMethod · 0.80

Tested by

no test coverage detected