Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ed0f115abfab2ffbe860b8167234dd4d3020d13e
      
https://github.com/WebKit/WebKit/commit/ed0f115abfab2ffbe860b8167234dd4d3020d13e
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-05-31 (Sun, 31 May 2026)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp
    M Source/JavaScriptCore/runtime/SetPrototype.cpp

  Log Message:
  -----------
  [JSC] Do not release scope while it is used before forEachInIterationRecord
https://bugs.webkit.org/show_bug.cgi?id=315927
rdar://178332419

Reviewed by Yijia Huang.

forEachInIterationRecord's lambda was using scope even after calling 
`scope.release()`,
which incorrectly suppressing the exception checks. This patch makes
SetPrototype.cpp code more idiomatic: use a new scope inside lambda, and
do scope.release() only when we no longer use scope.

* Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/SetPrototype.cpp:
(JSC::fastSetIntersection):
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::fastSetUnion):
(JSC::fastSetIsSubsetOf):
(JSC::fastSetDifference):
(JSC::fastSetSymmetricDifference):
(JSC::fastSetIsSupersetOf):
(JSC::fastSetIsDisjointFrom):

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



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

Reply via email to