[webkit-changes] [WebKit/WebKit] 73a351: [JSC] Implement `Iterator.prototype.toArray` from ...
SUZUKI Sosuke
noreply at github.com
Mon Sep 9 18:47:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 73a351ca150f54231be35ab3c4fb06b3e28daf78
https://github.com/WebKit/WebKit/commit/73a351ca150f54231be35ab3c4fb06b3e28daf78
Author: Sosuke Suzuki <aosukeke at gmail.com>
Date: 2024-09-09 (Mon, 09 Sep 2024)
Changed paths:
A JSTests/stress/iterator-prototype-toArray.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/CommonIdentifiers.h
M Source/JavaScriptCore/runtime/IteratorOperations.cpp
M Source/JavaScriptCore/runtime/IteratorOperations.h
M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp
Log Message:
-----------
[JSC] Implement `Iterator.prototype.toArray` from Iterator Helpers Proposal
https://bugs.webkit.org/show_bug.cgi?id=278979
Reviewed by Yusuke Suzuki.
This patch implements `Iterator.prototype.toArray`[1] from Iterator
Helpers Proposal[2].
[1]: https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.toarray
[2]: https://github.com/tc39/proposal-iterator-helpers
* JSTests/stress/iterator-prototype-toArray.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):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/CommonIdentifiers.h:
* Source/JavaScriptCore/runtime/IteratorOperations.cpp:
(JSC::iteratorDirect):
* Source/JavaScriptCore/runtime/IteratorOperations.h:
(JSC::forEachInIteratorProtocol):
* Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp:
(JSC::JSIteratorPrototype::finishCreation):
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/283381@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list