Lines Matching refs:args
18 void SetupTimers(const FunctionCallbackInfo<Value>& args) {
19 CHECK(args[0]->IsFunction());
20 CHECK(args[1]->IsFunction());
21 auto env = Environment::GetCurrent(args);
23 env->set_immediate_callback_function(args[0].As<Function>());
24 env->set_timers_callback_function(args[1].As<Function>());
27 void GetLibuvNow(const FunctionCallbackInfo<Value>& args) {
28 Environment* env = Environment::GetCurrent(args);
29 args.GetReturnValue().Set(env->GetNow());
32 void ScheduleTimer(const FunctionCallbackInfo<Value>& args) {
33 auto env = Environment::GetCurrent(args);
34 env->ScheduleTimer(args[0]->IntegerValue(env->context()).FromJust());
37 void ToggleTimerRef(const FunctionCallbackInfo<Value>& args) {
38 Environment::GetCurrent(args)->ToggleTimerRef(args[0]->IsTrue());
41 void ToggleImmediateRef(const FunctionCallbackInfo<Value>& args) {
42 Environment::GetCurrent(args)->ToggleImmediateRef(args[0]->IsTrue());