File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -1066,17 +1066,13 @@ MaybeLocal<Value> InternalMakeCallback(Environment* env,
1066
1066
return Undefined (env->isolate ());
1067
1067
}
1068
1068
1069
- MaybeLocal<Value> ret;
1069
+ MaybeLocal<Value> ret = callback-> Call (env-> context (), recv, argc, argv) ;
1070
1070
1071
- {
1072
- ret = callback->Call (env->context (), recv, argc, argv);
1073
-
1074
- if (ret.IsEmpty ()) {
1075
- // NOTE: For backwards compatibility with public API we return Undefined()
1076
- // if the top level call threw.
1077
- scope.MarkAsFailed ();
1078
- return scope.IsInnerMakeCallback () ? ret : Undefined (env->isolate ());
1079
- }
1071
+ if (ret.IsEmpty ()) {
1072
+ // NOTE: For backwards compatibility with public API we return Undefined()
1073
+ // if the top level call threw.
1074
+ scope.MarkAsFailed ();
1075
+ return scope.IsInnerMakeCallback () ? ret : Undefined (env->isolate ());
1080
1076
}
1081
1077
1082
1078
scope.Close ();
You can’t perform that action at this time.
0 commit comments