Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 84cc6561cbc81c2b2cb3bc36e8d704b78ffe635a https://github.com/WebKit/WebKit/commit/84cc6561cbc81c2b2cb3bc36e8d704b78ffe635a Author: Sosuke Suzuki <aosuk...@gmail.com> Date: 2024-09-16 (Mon, 16 Sep 2024)
Changed paths: A JSTests/stress/iterator-prototype-reduce.js M JSTests/test262/expectations.yaml M Source/JavaScriptCore/builtins/JSIteratorPrototype.js M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp Log Message: ----------- [JSC] Implement `Iterator.prototype.reduce` from Iterator Helpers Proposal https://bugs.webkit.org/show_bug.cgi?id=279726 Reviewed by Yusuke Suzuki. Implement `Iterator.prototype.reduce`[1] from Iterator Helpers Proposal[2]. [1]: https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.reduce [2]: https://github.com/tc39/proposal-iterator-helpers * JSTests/stress/iterator-prototype-reduce.js: Added. (assert): (sameArray): (shouldThrow): (throw.new.Error.Iter.prototype.get next): (throw.new.Error.Iter): (throw.new.Error): (sameArray.Iter.prototype.next): (sameArray.Iter): (sameValue.Iter.prototype.next): (sameValue.Iter): (sameValue): (prototype.next): (iter.reduce.Iter.prototype.get next): (iter.reduce.Iter.prototype.get return): (iter.reduce.Iter): (iter.reduce): * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/builtins/JSIteratorPrototype.js: (reduce.wrapper.return.next): (reduce.wrapper.return.get return): (reduce.wrapper.iterator): (reduce): * Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp: (JSC::JSIteratorPrototype::finishCreation): Canonical link: https://commits.webkit.org/283697@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes