File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -1379,17 +1379,13 @@ MaybeLocal<Value> InternalMakeCallback(Environment* env,
1379
1379
return Undefined (env->isolate ());
1380
1380
}
1381
1381
1382
- MaybeLocal<Value> ret;
1382
+ MaybeLocal<Value> ret = callback-> Call (env-> context (), recv, argc, argv) ;
1383
1383
1384
- {
1385
- ret = callback->Call (env->context (), recv, argc, argv);
1386
-
1387
- if (ret.IsEmpty ()) {
1388
- // NOTE: For backwards compatibility with public API we return Undefined()
1389
- // if the top level call threw.
1390
- scope.MarkAsFailed ();
1391
- return scope.IsInnerMakeCallback () ? ret : Undefined (env->isolate ());
1392
- }
1384
+ if (ret.IsEmpty ()) {
1385
+ // NOTE: For backwards compatibility with public API we return Undefined()
1386
+ // if the top level call threw.
1387
+ scope.MarkAsFailed ();
1388
+ return scope.IsInnerMakeCallback () ? ret : Undefined (env->isolate ());
1393
1389
}
1394
1390
1395
1391
scope.Close ();
You can’t perform that action at this time.
0 commit comments