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

Method Call_

nan.h:1901–1912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899
1900#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1901 MaybeLocal<v8::Value> Call_(v8::Isolate *isolate
1902 , v8::Local<v8::Object> target
1903 , int argc
1904 , v8::Local<v8::Value> argv[]
1905 , AsyncResource* resource) const {
1906 EscapableHandleScope scope;
1907 v8::Local<v8::Function> func = New(handle_);
1908 auto maybe = resource->runInAsyncScope(target, func, argc, argv);
1909 v8::Local<v8::Value> local;
1910 if (!maybe.ToLocal(&local)) return MaybeLocal<v8::Value>();
1911 return scope.Escape(local);
1912 }
1913#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1914 v8::Local<v8::Value> Call_(v8::Isolate *isolate
1915 , v8::Local<v8::Object> target

Callers

nothing calls this directly

Calls 5

MakeCallbackFunction · 0.85
runInAsyncScopeMethod · 0.80
ToLocalMethod · 0.80
EscapeMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected