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

Function NAN_METHOD

test/cpp/asyncprogressqueueworkerstream.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65NAN_METHOD(DoProgress) {
66 Callback *progress = new Callback(To<v8::Function>(info[1]).ToLocalChecked());
67 Callback *callback = new Callback(To<v8::Function>(info[2]).ToLocalChecked());
68 AsyncQueueWorker(new ProgressQueueWorker<data_t>(
69 callback
70 , progress
71 , To<uint32_t>(info[0]).FromJust()));
72}
73
74NAN_MODULE_INIT(Init) {
75 Set(target

Callers

nothing calls this directly

Calls 3

AsyncQueueWorkerFunction · 0.85
ToLocalCheckedMethod · 0.80
FromJustMethod · 0.80

Tested by

no test coverage detected