Skip to content

Commit

Permalink
fix: handle isolation termination in MicrotasksScope
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Sep 22, 2022
1 parent af8a66f commit c843e1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/common/gin_helper/microtasks_scope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace gin_helper {
MicrotasksScope::MicrotasksScope(v8::Isolate* isolate,
bool ignore_browser_checkpoint,
v8::MicrotasksScope::Type scope_type) {
if (isolate->IsExecutionTerminating())
return;
if (Locker::IsBrowserProcess()) {
if (!ignore_browser_checkpoint)
v8::MicrotasksScope::PerformCheckpoint(isolate);
Expand Down

0 comments on commit c843e1e

Please sign in to comment.