Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 547e1555ce4d3fc9a0b016c2cc6cd84c29fe03ce
https://github.com/WebKit/WebKit/commit/547e1555ce4d3fc9a0b016c2cc6cd84c29fe03ce
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
M JSTests/stress/iterator-prototype-chunks.js
M JSTests/stress/iterator-prototype-windows.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/builtins/JSIteratorPrototype.js
Log Message:
-----------
[JSC] Align Iterator#chunk / Iterator#windows to the latest spec
https://bugs.webkit.org/show_bug.cgi?id=321272
rdar://184321801
Reviewed by Yijia Huang.
Iterator#chunk / Iterator#windows handles input chunk-size / window-size
differently. This patch fixes them to align them to the latest spec.
* JSTests/stress/iterator-prototype-chunks.js:
(const.invalidChunkSize.of.invalidChunkSizes.shouldThrow):
(Iterator.prototype.chunks.call):
(validIter.chunks.const.validIter):
(validIter.chunks):
(const.closable.get next):
(const.closable.return):
(shouldThrow):
(assert.const.closable.get next):
(assert.const.closable.get return):
(assert):
* JSTests/stress/iterator-prototype-windows.js:
(const.invalidWindowSize.of.invalidWindowSizes.shouldThrow):
(Iterator.prototype.windows.call):
(validIter.windows.const.validIter):
(validIter.windows):
(const.invalidUndersized.of.invalidUndersizedValues.shouldThrow):
(validIter.windows.const.closable.get next):
(assert.const.closable.get next):
(assert.const.closable.get return):
(assert):
(shouldThrow.const.validIter): Deleted.
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/builtins/JSIteratorPrototype.js:
(chunks.generator):
(chunks):
(windows.generator):
(windows):
Canonical link: https://commits.webkit.org/318802@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications