Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 0de8b68389b2ac948056557a94146997abbac0a0 https://github.com/WebKit/WebKit/commit/0de8b68389b2ac948056557a94146997abbac0a0 Author: Sosuke Suzuki <aosuk...@gmail.com> Date: 2024-09-14 (Sat, 14 Sep 2024)
Changed paths: A JSTests/stress/iterator-prototype-forEach.js M JSTests/test262/expectations.yaml M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp Log Message: ----------- [JSC] Implement `Iterator.prototype.forEach` from Iterator Helpers Proposal https://bugs.webkit.org/show_bug.cgi?id=279501 Reviewed by Yusuke Suzuki. This patch implements `Iterator.prototype.forEach`[1] from Iterator Helpers Proposal[2]. [1]: https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.foreach [2]: https://github.com/tc39/proposal-iterator-helpers * JSTests/stress/iterator-prototype-forEach.js: Added. (assert): (sameArray): (shouldThrow): (throw.new.Error.Iter.prototype.next): (throw.new.Error.Iter): (throw.new.Error): (sameArray.Iter.prototype.get next): (sameArray.Iter): (sameArray.gen): (const.validIter): (const.invalidCallback.of.invalidCallbacks.shouldThrow): (Iterator.prototype.forEach.call): (const.iter.next): (MyError): (shouldThrow.const.validIter): * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp: (JSC::JSIteratorPrototype::finishCreation): (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/283673@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