File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ using v8::HandleScope;
1212using v8::Isolate;
1313using v8::Local;
1414using v8::MaybeLocal;
15+ using v8::MicrotasksScope;
1516using v8::NewStringType;
1617using v8::Object;
1718using v8::String;
@@ -100,7 +101,7 @@ void InternalCallbackScope::Close() {
100101
101102 if (!env_->can_call_into_js ()) return ;
102103 if (!tick_info->has_tick_scheduled ()) {
103- env_->isolate ()-> RunMicrotasks ( );
104+ MicrotasksScope::PerformCheckpoint ( env_->isolate ());
104105 }
105106
106107 // Make sure the stack unwound properly. If there are nested MakeCallback's
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ using v8::kPromiseRejectWithNoHandler;
2121using v8::kPromiseResolveAfterResolved ;
2222using v8::Local;
2323using v8::Message;
24+ using v8::MicrotasksScope;
2425using v8::Number;
2526using v8::Object;
2627using v8::Promise;
@@ -43,7 +44,7 @@ static void EnqueueMicrotask(const FunctionCallbackInfo<Value>& args) {
4344bool RunNextTicksNative (Environment* env) {
4445 TickInfo* tick_info = env->tick_info ();
4546 if (!tick_info->has_tick_scheduled () && !tick_info->has_rejection_to_warn ())
46- env->isolate ()-> RunMicrotasks ( );
47+ MicrotasksScope::PerformCheckpoint ( env->isolate ());
4748 if (!tick_info->has_tick_scheduled () && !tick_info->has_rejection_to_warn ())
4849 return true ;
4950
You can’t perform that action at this time.
0 commit comments