Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 341ff8458210e2250c445ada8786e4505e328765
      
https://github.com/WebKit/WebKit/commit/341ff8458210e2250c445ada8786e4505e328765
  Author: Sosuke Suzuki <[email protected]>
  Date:   2025-09-11 (Thu, 11 Sep 2025)

  Changed paths:
    A JSTests/stress/set-prototype-isDisjointFrom-iterator-close.js
    A JSTests/stress/set-prototype-isSupersetOf-iterator-close.js
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/runtime/SetPrototype.cpp

  Log Message:
  -----------
  [JSC] `Set#isDisjointFrom` and `Set#isSupersetOf` should call `iteratorClose` 
before return
https://bugs.webkit.org/show_bug.cgi?id=298761

Reviewed by Yusuke Suzuki.

This patch fixes to call `iteratorClose` before return from 
`Set#isDisjointFrom` and `Set#isSupersetOf`.

* JSTests/stress/set-prototype-isDisjointFrom-iterator-close.js: Added.
(shouldBe):
(shouldBeArray):
(throw.new.Error.let.keysIter.return.return.get value):
(throw.new.Error.let.keysIter.return.return.get done):
(throw.new.Error):
* JSTests/stress/set-prototype-isSupersetOf-iterator-close.js: Added.
(shouldBe):
(shouldBeArray):
(throw.new.Error.let.keysIter.return.return.get value):
(throw.new.Error.let.keysIter.return.return.get done):
(throw.new.Error):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/SetPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

Canonical link: https://commits.webkit.org/299883@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