Lines Matching defs:args
11 void RunInCallbackScope(const v8::FunctionCallbackInfo<v8::Value>& args) {
12 v8::Isolate* isolate = args.GetIsolate();
14 assert(args.Length() == 4);
15 assert(args[0]->IsObject());
16 assert(args[1]->IsNumber());
17 assert(args[2]->IsNumber());
18 assert(args[3]->IsFunction());
21 args[1].As<v8::Number>()->Value(),
22 args[2].As<v8::Number>()->Value()
25 node::CallbackScope scope(isolate, args[0].As<v8::Object>(), asyncContext);
26 v8::Local<v8::Function> fn = args[3].As<v8::Function>();
29 fn->Call(isolate->GetCurrentContext(), args[0], 0, nullptr);
32 args.GetReturnValue().Set(ret.ToLocalChecked());
48 static void TestResolveAsync(const v8::FunctionCallbackInfo<v8::Value>& args) {
49 v8::Isolate* isolate = args.GetIsolate();
67 args.GetReturnValue().Set(local->GetPromise());