Fixed the issue in the new version.
https://codereview.chromium.org/1181903003/diff/1/src/typedarray.js
File src/typedarray.js (right):
https://codereview.chromium.org/1181903003/diff/1/src/typedarray.js#newcode154
src/typedarray.js:154: // twice. Currently, that's fine, but it'll be
observable with proxies.
On 2015/06/12 01:11:33, caitp wrote:
On 2015/06/12 00:57:08, adamk wrote:
> Proxies aren't required, a getter for @@iterator is sufficient to
detect this.
> Let's fix it now.
I think the only way to really fix that currently is to write the loop
by hand
:( As is done in ArrayFrom --- Is there a better way?
Well, you can use for-of on most of the builtin iterators (generators,
array iterators, etc), as the iterator defines [Symbol.iterator]() to
return this, but that's not really part of the standard iteration
protocol, so I won't depend on it here. The loop wasn't so bad.
https://codereview.chromium.org/1181903003/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.