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

  Changed paths:
    A JSTests/stress/unhandled-rejection-callback-enqueues-microtask.js
    M Source/JavaScriptCore/runtime/VM.cpp

  Log Message:
  -----------
  [JSC] Ensure microtask entryScope after running unhandled rejection callback

https://bugs.webkit.org/show_bug.cgi?id=300532
rdar://162096492

Reviewed by Yusuke Suzuki.

When draining the microtask queue, the entryScope is currently only emplaced if
the microtask queue is initially non-empty. However, the unhandled rejection
callback itself can enqueue microtasks, so the entryScope also needs to be
emplaced in that case.

Test: JSTests/stress/unhandled-rejection-callback-enqueues-microtask.js
* JSTests/stress/unhandled-rejection-callback-enqueues-microtask.js: Added.
(async alwaysThrows):
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::drainMicrotasks):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to