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

Method HandleOKCallback

test/cpp/bufferworkerpersistent.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 void HandleOKCallback () {
35 HandleScope scope;
36
37 v8::Local<v8::Value> handle = GetFromPersistent("buffer");
38 callback->Call(1, &handle, async_resource);
39
40 handle = GetFromPersistent(New("puffer").ToLocalChecked());
41 callback->Call(1, &handle, async_resource);
42
43 handle = GetFromPersistent(0u);
44 callback->Call(1, &handle, async_resource);
45 }
46
47 private:
48 int milliseconds;

Callers

nothing calls this directly

Calls 3

CallMethod · 0.80
ToLocalCheckedMethod · 0.80
NewFunction · 0.50

Tested by

no test coverage detected