Lines Matching refs:args

182 void CallAndPauseOnStart(const FunctionCallbackInfo<v8::Value>& args) {
183 Environment* env = Environment::GetCurrent(args);
184 CHECK_GT(args.Length(), 1);
185 CHECK(args[0]->IsFunction());
186 SlicedArguments call_args(args, /* start */ 2);
189 args[0].As<v8::Function>()->Call(env->context(), args[1],
192 args.GetReturnValue().Set(retval.ToLocalChecked());
239 static void InvokeAsyncTaskFnWithId(const FunctionCallbackInfo<Value>& args) {
240 Environment* env = Environment::GetCurrent(args);
241 CHECK(args[0]->IsNumber());
242 int64_t task_id = args[0]->IntegerValue(env->context()).FromJust();
246 static void AsyncTaskScheduledWrapper(const FunctionCallbackInfo<Value>& args) {
247 Environment* env = Environment::GetCurrent(args);
249 CHECK(args[0]->IsString());
250 Local<String> task_name = args[0].As<String>();
251 String::Value task_name_value(args.GetIsolate(), task_name);
254 CHECK(args[1]->IsNumber());
255 int64_t task_id = args[1]->IntegerValue(env->context()).FromJust();
258 CHECK(args[2]->IsBoolean());
259 bool recurring = args[2]->BooleanValue(args.GetIsolate());
264 static void RegisterAsyncHookWrapper(const FunctionCallbackInfo<Value>& args) {
265 Environment* env = Environment::GetCurrent(args);
267 CHECK(args[0]->IsFunction());
268 Local<Function> enable_function = args[0].As<Function>();
269 CHECK(args[1]->IsFunction());
270 Local<Function> disable_function = args[1].As<Function>();
275 void IsEnabled(const FunctionCallbackInfo<Value>& args) {
276 Environment* env = Environment::GetCurrent(args);
277 args.GetReturnValue().Set(env->inspector_agent()->IsListening());
280 void Open(const FunctionCallbackInfo<Value>& args) {
281 Environment* env = Environment::GetCurrent(args);
284 if (args.Length() > 0 && args[0]->IsUint32()) {
285 uint32_t port = args[0].As<Uint32>()->Value();
291 if (args.Length() > 1 && args[1]->IsString()) {
292 Utf8Value host(env->isolate(), args[1].As<String>());
300 void WaitForDebugger(const FunctionCallbackInfo<Value>& args) {
301 Environment* env = Environment::GetCurrent(args);
305 args.GetReturnValue().Set(agent->IsActive());
308 void Url(const FunctionCallbackInfo<Value>& args) {
309 Environment* env = Environment::GetCurrent(args);
314 args.GetReturnValue().Set(OneByteString(env->isolate(), url.c_str()));