[Bug 17648] [Awaiting ES6] Add iterators

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17648

--- Comment #4 from Cameron McCormack <cam@mcc.id.au> ---
The ES6 draft has changed a lot since I looked at it last. :)  I can't see
mention of iterator() methods on objects any more, which is what Web IDL is
written against at the moment.  Maybe that strawman changed before being added
to the spec.  I can see in section 12.6.4 (dealing with for-in and for-of
loops), the runtime semantics of the "For In/Of Expression Evaluation" abstract
operation, step 7.b says:

  Let keys be the result of performing Invoke with arguments obj, %iterator%,
and an empty List.

but there doesn't seem to be a definition for this intrinsic object %iterator%.
 Maybe that's meant to be an intrinsic symbol @@iterator?  Anyway, it feels
like the spec isn't quite done on this yet, so perhaps I should wait a bit.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 14 December 2012 05:57:14 UTC