Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 953bc0380f0bb7acb33190e419a709b9d0ffc5a4
      
https://github.com/WebKit/WebKit/commit/953bc0380f0bb7acb33190e419a709b9d0ffc5a4
  Author: Shu-yu Guo <[email protected]>
  Date:   2026-05-18 (Mon, 18 May 2026)

  Changed paths:
    A JSTests/stress/dfg-perform-promise-then-one-handler-exit-ok.js
    M Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp

  Log Message:
  -----------
  [JSC] Add missing ExitOK after constant folding `then`
https://bugs.webkit.org/show_bug.cgi?id=315042
rdar://177329825

Reviewed by Yijia Huang.

313277@main adds constant folding for initial `then` but missed an ExitOK,
which this PR adds. No fix up is needed for the folding of PerformPromiseThen
to PerformPromiseThenOneHandler, but an ExitOK node was missing which tripped
validation.

Test: JSTests/stress/dfg-perform-promise-then-one-handler-exit-ok.js

* JSTests/stress/dfg-perform-promise-then-one-handler-exit-ok.js: Added.
(a3):
(opt):
(async for):
* Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::foldConstants):

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



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

Reply via email to