[webkit-changes] [WebKit/WebKit] 39448a: [JSC] Implement Iterator.prototype.constructor & I...

Tetsuharu Ohzeki noreply at github.com
Fri Aug 23 18:03:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 39448a8ea6f9780be180683610d755bf0d6a54dd
      https://github.com/WebKit/WebKit/commit/39448a8ea6f9780be180683610d755bf0d6a54dd
  Author: Tetsuharu Ohzeki <tetsuharu.ohzeki at gmail.com>
  Date:   2024-08-23 (Fri, 23 Aug 2024)

  Changed paths:
    A JSTests/stress/iterator-prototype-constructor-new.js
    A JSTests/stress/iterator-prototype-constructor-setter.js
    A JSTests/stress/iterator-prototype-to-string-tag-basic-setter.js
    M JSTests/test262/config.yaml
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/CMakeLists.txt
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    M Source/JavaScriptCore/Sources.txt
    M Source/JavaScriptCore/heap/Heap.cpp
    M Source/JavaScriptCore/heap/Heap.h
    M Source/JavaScriptCore/runtime/CommonIdentifiers.h
    M Source/JavaScriptCore/runtime/IteratorPrototype.cpp
    M Source/JavaScriptCore/runtime/JSCast.h
    M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
    M Source/JavaScriptCore/runtime/JSGlobalObject.h
    A Source/JavaScriptCore/runtime/JSIterator.cpp
    A Source/JavaScriptCore/runtime/JSIterator.h
    A Source/JavaScriptCore/runtime/JSIteratorConstructor.cpp
    A Source/JavaScriptCore/runtime/JSIteratorConstructor.h
    M Source/JavaScriptCore/runtime/JSType.cpp
    M Source/JavaScriptCore/runtime/JSType.h
    M Source/JavaScriptCore/runtime/OptionsList.h
    M Source/JavaScriptCore/runtime/VM.cpp

  Log Message:
  -----------
  [JSC] Implement Iterator.prototype.constructor & Iterator.prototype[@@toStringTag]

https://bugs.webkit.org/show_bug.cgi?id=278393

Reviewed by Yusuke Suzuki.

This implements:

- https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor
- https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype-@@tostringtag

This splits the original patch by #27865
into a small piece to make it easy to review and land the patch.

* JSTests/test262/config.yaml:
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/heap/Heap.cpp:
* Source/JavaScriptCore/heap/Heap.h:
* Source/JavaScriptCore/runtime/CommonIdentifiers.h:
* Source/JavaScriptCore/runtime/IteratorPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::JSC_DEFINE_CUSTOM_GETTER):
(JSC::JSC_DEFINE_CUSTOM_SETTER):
(JSC::IteratorPrototype::finishCreation):
* Source/JavaScriptCore/runtime/JSCast.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildrenImpl):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::iteratorConstructor const):
(JSC::JSGlobalObject::iteratorStructure const):
* Source/JavaScriptCore/runtime/JSType.cpp:
(WTF::printInternal):
* Source/JavaScriptCore/runtime/JSType.h:
* Source/JavaScriptCore/runtime/OptionsList.h:
* Source/JavaScriptCore/runtime/VM.cpp:

Canonical link: https://commits.webkit.org/282687@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