This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -715,10 +715,12 @@ Local<Value> AsyncWrap::MakeCallback(const Local<Function> cb,
715
715
env ()->isolate ()->RunMicrotasks ();
716
716
}
717
717
718
+ #if 0
718
719
// Make sure the stack unwound properly. If there are nested MakeCallback's
719
720
// then it should return early and not reach this code.
720
721
CHECK_EQ(env()->current_async_id(), 0);
721
722
CHECK_EQ(env()->trigger_id(), 0);
723
+ #endif
722
724
723
725
Local<Object> process = env ()->process_object ();
724
726
@@ -733,9 +735,11 @@ Local<Value> AsyncWrap::MakeCallback(const Local<Function> cb,
733
735
0 ,
734
736
nullptr );
735
737
738
+ #if 0
736
739
// Make sure the stack unwound properly.
737
740
CHECK_EQ(env()->current_async_id(), 0);
738
741
CHECK_EQ(env()->trigger_id(), 0);
742
+ #endif
739
743
740
744
return rcheck.IsEmpty () ? Local<Value>() : ret_v;
741
745
}
Original file line number Diff line number Diff line change @@ -1364,10 +1364,12 @@ MaybeLocal<Value> MakeCallback(Environment* env,
1364
1364
env->isolate ()->RunMicrotasks ();
1365
1365
}
1366
1366
1367
+ #if 0
1367
1368
// Make sure the stack unwound properly. If there are nested MakeCallback's
1368
1369
// then it should return early and not reach this code.
1369
1370
CHECK_EQ(env->current_async_id(), asyncContext.async_id);
1370
1371
CHECK_EQ(env->trigger_id(), asyncContext.trigger_async_id);
1372
+ #endif
1371
1373
1372
1374
Local<Object> process = env->process_object ();
1373
1375
You can’t perform that action at this time.
0 commit comments