Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6319f7420d93bd8a83975d2eacede16a8a8b0284
      
https://github.com/WebKit/WebKit/commit/6319f7420d93bd8a83975d2eacede16a8a8b0284
  Author: Anand Srinivasan <[email protected]>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    A JSTests/stress/for-await-using-erm.js
    M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

  Log Message:
  -----------
  Try range in explicit resource management should include jump
https://bugs.webkit.org/show_bug.cgi?id=324005
rdar://185404431

Reviewed by Yusuke Suzuki and Yijia Huang.

Explicit resource management is implemented in bytecode using a
try-construction. The bytecode range covered by a try block should
include the jump at the end. Right now DFG produces an error in some ERM
constructions since flush nodes are not inserted in the right place and
DFGOSRAvailabilityAnalysisPhase fails.

Test: JSTests/stress/for-await-using-erm.js

* JSTests/stress/for-await-using-erm.js: Added.
(const.v4.v2):
(async f5):
(async f9):
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitUsingBodyScope):

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



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

Reply via email to