Lines Matching defs:args

956 void SetPrepareStackTraceCallback(const FunctionCallbackInfo<Value>& args) {
957 Realm* realm = Realm::GetCurrent(args);
958 CHECK(args[0]->IsFunction());
959 realm->set_prepare_stack_trace_callback(args[0].As<Function>());
962 static void SetSourceMapsEnabled(const FunctionCallbackInfo<Value>& args) {
963 Environment* env = Environment::GetCurrent(args);
964 CHECK(args[0]->IsBoolean());
965 env->set_source_maps_enabled(args[0].As<Boolean>()->Value());
969 const FunctionCallbackInfo<Value>& args) {
970 Environment* env = Environment::GetCurrent(args);
971 CHECK(args[0]->IsFunction());
972 env->set_get_source_map_error_source(args[0].As<Function>());
976 const FunctionCallbackInfo<Value>& args) {
977 Environment* env = Environment::GetCurrent(args);
978 CHECK(args[0]->IsFunction());
979 env->set_maybe_cache_generated_source_map(args[0].As<Function>());
983 const FunctionCallbackInfo<Value>& args) {
984 Realm* realm = Realm::GetCurrent(args);
985 CHECK(args[0]->IsFunction());
986 CHECK(args[1]->IsFunction());
987 realm->set_enhance_fatal_stack_before_inspector(args[0].As<Function>());
988 realm->set_enhance_fatal_stack_after_inspector(args[1].As<Function>());
992 static void NoSideEffectsToString(const FunctionCallbackInfo<Value>& args) {
993 Local<Context> context = args.GetIsolate()->GetCurrentContext();
995 if (args[0]->ToDetailString(context).ToLocal(&detail_string))
996 args.GetReturnValue().Set(detail_string);
999 static void TriggerUncaughtException(const FunctionCallbackInfo<Value>& args) {
1000 Isolate* isolate = args.GetIsolate();
1002 Local<Value> exception = args[0];
1009 bool from_promise = args[1]->IsTrue();