- 09 Feb, 2018 1 commit
-
-
Dan Elphick authored
This removes the Javascript version of Array.from in js/array.js and adds a CodeStubAssembler version in src/builtins/builtins-array-gen.cc. Also modify IteratorBuiltinsAssembler to allow querying the existence of the iterator method without calling it so we can fall back to the array-like behavior. BUG=v8:1956 Change-Id: Ibfb3cef002d72d70bd30b4de676fd22becde006c Reviewed-on: https://chromium-review.googlesource.com/887066Reviewed-by:
Tobias Tebbi <tebbi@chromium.org> Reviewed-by:
Jakob Gruber <jgruber@chromium.org> Reviewed-by:
Ross McIlroy <rmcilroy@chromium.org> Commit-Queue: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#51208}
-
- 15 Oct, 2015 1 commit
-
-
adamk authored
Also move those tests from mjsunit/harmony to mjsunit/es6. R=littledan@chromium.org Review URL: https://codereview.chromium.org/1403633007 Cr-Commit-Position: refs/heads/master@{#31314}
-
- 11 Jun, 2015 1 commit
-
-
dehrenberg authored
%AddElement is not intended for objects which are not arrays, and its behavior may go away with future refactorings. This patch gets rid of it if the receiver of from or of is not the intrinsic Array object. Array.of and Array.from previously papered over failures in calling [[DefineOwnProperty]] when setting array elements. This patch makes them lead to exceptions, and adds tests to assert that the appropriate exceptions are thrown. BUG=v8:4168 R=adamk CC=rossberg,verwaest LOG=Y Review URL: https://codereview.chromium.org/1181623003 Cr-Commit-Position: refs/heads/master@{#28969}
-
- 29 Jan, 2015 1 commit
-
-
caitpotter88 authored
BUG=v8:3833 LOG=N R=arv@chromium.org Review URL: https://codereview.chromium.org/856303002 Cr-Commit-Position: refs/heads/master@{#26314}
-
- 19 Jan, 2015 1 commit
-
-
caitpotter88 authored
LOG=N R=dpino@igalia.com, arv@chromium.org, dslomov@chromium.org BUG= Review URL: https://codereview.chromium.org/851163007 Cr-Commit-Position: refs/heads/master@{#26130}
-
- 11 Dec, 2014 1 commit
-
-
caitpotter88 authored
A helpful utility which converts iterables and array-like objects into Arrays https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from LOG=Y BUG=v8:3336 R=arv@chromium.org, rossberg@chromium.org Review URL: https://codereview.chromium.org/363833006 Cr-Commit-Position: refs/heads/master@{#25785}
-