Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0a0c75c029a02ac511abaf491e38178e66c931e5
https://github.com/WebKit/WebKit/commit/0a0c75c029a02ac511abaf491e38178e66c931e5
Author: Tetsuharu Ohzeki <[email protected]>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M JSTests/stress/iterator-prototype-includes.js
M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp
Log Message:
-----------
[JSC] Iterator#includes should propagate a thrown error in |IteratorClose|
abstract operation on matching the target value
https://bugs.webkit.org/show_bug.cgi?id=319569
Reviewed by Keith Miller.
This is a bug by the wrong implementation in bug 309883.
According to [the spec](https://tc39.es/proposal-iterator-includes/),
in the step 10-d, we should propagate an error happening in `IteratorClose`
abstract operation.
* JSTests/stress/iterator-prototype-includes.js:
This adds some cases that `IteratorClose` throw an error.
* Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp:
Canonical link: https://commits.webkit.org/317622@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications