File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ using v8::HandleScope;
12
12
using v8::Isolate;
13
13
using v8::Local;
14
14
using v8::MaybeLocal;
15
+ using v8::MicrotasksScope;
15
16
using v8::NewStringType;
16
17
using v8::Object;
17
18
using v8::String;
@@ -100,7 +101,7 @@ void InternalCallbackScope::Close() {
100
101
101
102
if (!env_->can_call_into_js ()) return ;
102
103
if (!tick_info->has_tick_scheduled ()) {
103
- env_->isolate ()-> RunMicrotasks ( );
104
+ MicrotasksScope::PerformCheckpoint ( env_->isolate ());
104
105
}
105
106
106
107
// 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;
21
21
using v8::kPromiseResolveAfterResolved ;
22
22
using v8::Local;
23
23
using v8::Message;
24
+ using v8::MicrotasksScope;
24
25
using v8::Number;
25
26
using v8::Object;
26
27
using v8::Promise;
@@ -43,7 +44,7 @@ static void EnqueueMicrotask(const FunctionCallbackInfo<Value>& args) {
43
44
bool RunNextTicksNative (Environment* env) {
44
45
TickInfo* tick_info = env->tick_info ();
45
46
if (!tick_info->has_tick_scheduled () && !tick_info->has_rejection_to_warn ())
46
- env->isolate ()-> RunMicrotasks ( );
47
+ MicrotasksScope::PerformCheckpoint ( env->isolate ());
47
48
if (!tick_info->has_tick_scheduled () && !tick_info->has_rejection_to_warn ())
48
49
return true ;
49
50
You can’t perform that action at this time.
0 commit comments