Changeset 182647 in webkit


Ignore:
Timestamp:
Apr 10, 2015 6:00:07 PM (9 years ago)
Author:
Yusuke Suzuki
Message:

ES6: Iterator toString names should be consistent
https://bugs.webkit.org/show_bug.cgi?id=142424

Reviewed by Geoffrey Garen.

Iterator Object Names in the spec right now have spaces.
In our implementation some do and some don't.
This patch aligns JSC to the spec.

  • runtime/JSArrayIterator.cpp:
  • runtime/JSStringIterator.cpp:
  • tests/stress/iterator-names.js: Added.

(test):
(iter):
(check):

Location:
trunk/Source/JavaScriptCore
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r182643 r182647  
     12015-04-10  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        ES6: Iterator toString names should be consistent
     4        https://bugs.webkit.org/show_bug.cgi?id=142424
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Iterator Object Names in the spec right now have spaces.
     9        In our implementation some do and some don't.
     10        This patch aligns JSC to the spec.
     11
     12        * runtime/JSArrayIterator.cpp:
     13        * runtime/JSStringIterator.cpp:
     14        * tests/stress/iterator-names.js: Added.
     15        (test):
     16        (iter):
     17        (check):
     18
    1192015-04-10  Michael Saboff  <msaboff@apple.com>
    220
  • trunk/Source/JavaScriptCore/runtime/JSArrayIterator.cpp

    r181203 r182647  
    3434namespace JSC {
    3535
    36 const ClassInfo JSArrayIterator::s_info = { "ArrayIterator", &Base::s_info, 0, CREATE_METHOD_TABLE(JSArrayIterator) };
     36const ClassInfo JSArrayIterator::s_info = { "Array Iterator", &Base::s_info, 0, CREATE_METHOD_TABLE(JSArrayIterator) };
    3737
    3838void JSArrayIterator::finishCreation(VM& vm, JSGlobalObject*, ArrayIterationKind kind, JSObject* iteratedObject)
  • trunk/Source/JavaScriptCore/runtime/JSStringIterator.cpp

    r181203 r182647  
    3333namespace JSC {
    3434
    35 const ClassInfo JSStringIterator::s_info = { "StringIterator", &Base::s_info, 0, CREATE_METHOD_TABLE(JSStringIterator) };
     35const ClassInfo JSStringIterator::s_info = { "String Iterator", &Base::s_info, 0, CREATE_METHOD_TABLE(JSStringIterator) };
    3636
    3737void JSStringIterator::finishCreation(VM& vm, JSGlobalObject*, JSString* iteratedString)
Note: See TracChangeset for help on using the changeset viewer.