Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c4b1c589e945b398b3d318e99306f3c523155441
      
https://github.com/WebKit/WebKit/commit/c4b1c589e945b398b3d318e99306f3c523155441
  Author: Shu-yu Guo <[email protected]>
  Date:   2025-11-11 (Tue, 11 Nov 2025)

  Changed paths:
    A JSTests/stress/jsc-termination-in-microtask.js
    M Source/JavaScriptCore/jsc.cpp

  Log Message:
  -----------
  [JSC] Handle termination exception after draining microtasks in jsc shell
https://bugs.webkit.org/show_bug.cgi?id=302304
rdar://163999397

Reviewed by Keith Miller.

Throwing a termination exception in a microtask causes the draining to stop,
but does not forbid future execution, and also proceeds to do deferred work.
Doing deferred work with a termination exception pending on the VM can trigger
asserts.

This PR only continues further execution in the jsc shell after draining
microtask queue if a termination exception was not thrown.

Test: JSTests/stress/jsc-termination-in-microtask.js

* JSTests/stress/jsc-termination-in-microtask.js: Added.
(async asyncInfiniteLoop):
* Source/JavaScriptCore/jsc.cpp:
(runJSC):

Canonical link: https://commits.webkit.org/302874@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to