[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-15 Thread arv
LGTM https://codereview.chromium.org/1181903003/diff/80001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/80001/src/typedarray.js#newcode138 src/typedarray.js:138: var newIterable = {__proto__: null}; var newIterable = { __proto__: null,

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-15 Thread commit-...@chromium.org via codereview.chromium.org
Patchset 6 (id:??) landed as https://crrev.com/40420f67e7fb029a1379882f95023afaa19fa7a0 Cr-Commit-Position: refs/heads/master@{#29031} https://codereview.chromium.org/1181903003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-15 Thread commit-...@chromium.org via codereview.chromium.org
Committed patchset #6 (id:11) https://codereview.chromium.org/1181903003/ -- -- v8-dev mailing list v8-dev@googlegroups.com 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

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-15 Thread commit-...@chromium.org via codereview.chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181903003/11 https://codereview.chromium.org/1181903003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-15 Thread littledan
https://codereview.chromium.org/1181903003/diff/80001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/80001/src/typedarray.js#newcode138 src/typedarray.js:138: var newIterable = {__proto__: null}; On 2015/06/15 15:53:19, arv wrote: This

Re: [v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-15 Thread Erik Arvidsson
On Jun 15, 2015 11:14 AM, little...@chromium.org wrote: https://codereview.chromium.org/1181903003/diff/80001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/80001/src/typedarray.js#newcode138 src/typedarray.js:138: var newIterable =

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread arv
https://codereview.chromium.org/1181903003/diff/20001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/20001/src/typedarray.js#newcode139 src/typedarray.js:139: while (!current.done) { The main benefit of using for-of is that you get everything

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread littledan
https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js#newcode139 src/typedarray.js:139: newIterable[symbolIterator] = function() { return iterator; }; On 2015/06/13

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread adamk
https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js#newcode139 src/typedarray.js:139: newIterable[symbolIterator] = function() { return iterator; }; Sadly this will fail

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread caitpotter88
https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js#newcode139 src/typedarray.js:139: newIterable[symbolIterator] = function() { return iterator; }; On 2015/06/13

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread littledan
https://codereview.chromium.org/1181903003/diff/40001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/40001/src/typedarray.js#newcode140 src/typedarray.js:140: if (!IS_OBJECT(current)) { On 2015/06/12 18:06:45, adamk wrote: I think you want

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread adamk
https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/60001/src/typedarray.js#newcode139 src/typedarray.js:139: newIterable[symbolIterator] = function() { return iterator; }; On 2015/06/13

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread littledan
Good catch, thanks https://codereview.chromium.org/1181903003/diff/20001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/20001/src/typedarray.js#newcode140 src/typedarray.js:140: list.push(current.value); On 2015/06/12 02:47:21, caitp wrote:

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-12 Thread adamk
https://codereview.chromium.org/1181903003/diff/40001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1181903003/diff/40001/src/typedarray.js#newcode140 src/typedarray.js:140: if (!IS_OBJECT(current)) { I think you want IS_SPEC_OBJECT here. The proper tests

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-11 Thread adamk
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. Proxies aren't

[v8-dev] Re: Allow TypedArrays to be initialized with iterables (issue 1181903003 by little...@chromium.org)

2015-06-11 Thread littledan
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