Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 962ea27aa60eeb8eaac503ad94c5a3efde4a61a4
      
https://github.com/WebKit/WebKit/commit/962ea27aa60eeb8eaac503ad94c5a3efde4a61a4
  Author: Devin Rousso <[email protected]>
  Date:   2026-04-13 (Mon, 13 Apr 2026)

  Changed paths:
    A JSTests/stress/iterator-prototype-join.js
    M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp
    M Source/JavaScriptCore/runtime/OptionsList.h

  Log Message:
  -----------
  [JSC] add support for Iterator.prototype.join
https://bugs.webkit.org/show_bug.cgi?id=304586

Reviewed by Yusuke Suzuki.

Just like to `Array.prototype.join`, being able to `join` an iterator (i.e. 
`Iterator.prototype.join`) will make it even easier to use arrays and iterators 
interchangeably.

Spec: <https://tc39.es/proposal-iterator-join/>
Proposal: <https://github.com/tc39/proposal-iterator-join>

* Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp:
(JSC::JSIteratorPrototype::finishCreation):
(JSC::iteratorProtoFuncJoin): Added.

* Source/JavaScriptCore/runtime/OptionsList.h:
Add a feature flag for this.

* JSTests/stress/iterator-prototype-join.js: Added.

Canonical link: https://commits.webkit.org/311097@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to