<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ES6: Iterator toString names should consistent"
   href="https://bugs.webkit.org/show_bug.cgi?id=142424">142424</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ES6: Iterator toString names should consistent
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joepeck@webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ggaren@apple.com, utatane.tea@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>* SUMMARY
Iterator Object Names in the spec right now have spaces. In our implementation some do and some don't.

* TEST

  js> "string"[Symbol.iterator]().toString()
  <-  "[object StringIterator]"

  js> (new Map).entries().toString()
  <-  "[object Map Iterator]"

We have Map/Set with spaces, but String/Array without spaces. Also, I don't know what would be expected of "ArgumentsIterator" given it is an internal type.

* SPEC

<span class="quote">> 21.1.5.2.2 %StringIteratorPrototype% [ @@toStringTag ]
> The initial value of the @@toStringTag property is the string value "String Iterator".

> 22.1.5.2.2 %ArrayIteratorPrototype% [ @@toStringTag ]
> The initial value of the @@toStringTag property is the string value "Array Iterator".

> 23.1.5.2.2 %MapIteratorPrototype% [ @@toStringTag ]
> The initial value of the @@toStringTag property is the string value "Map Iterator".

> 23.2.5.2.2 %SetIteratorPrototype% [ @@toStringTag ]
> The initial value of the @@toStringTag property is the string value "Set Iterator".</span >

I think it is weird to have spaces. The spec defines "GeneratorFunction" without a space.

Maybe this is something that should change in the spec or be discussed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>