Lines Matching defs:args
37 static void New(const FunctionCallbackInfo<Value>& args);
38 static void Enable(const FunctionCallbackInfo<Value>& args);
39 static void Disable(const FunctionCallbackInfo<Value>& args);
62 void NodeCategorySet::New(const FunctionCallbackInfo<Value>& args) {
63 Environment* env = Environment::GetCurrent(args);
65 CHECK(args[0]->IsArray());
66 Local<Array> cats = args[0].As<Array>();
75 new NodeCategorySet(env, args.This(), std::move(categories));
78 void NodeCategorySet::Enable(const FunctionCallbackInfo<Value>& args) {
80 ASSIGN_OR_RETURN_UNWRAP(&category_set, args.Holder());
92 void NodeCategorySet::Disable(const FunctionCallbackInfo<Value>& args) {
94 ASSIGN_OR_RETURN_UNWRAP(&category_set, args.Holder());
103 void GetEnabledCategories(const FunctionCallbackInfo<Value>& args) {
104 Environment* env = Environment::GetCurrent(args);
108 args.GetReturnValue().Set(
117 const FunctionCallbackInfo<Value>& args) {
118 Environment* env = Environment::GetCurrent(args);
119 CHECK(args[0]->IsFunction());
120 env->set_trace_category_state_function(args[0].As<Function>());