• Peter Marshall's avatar
    [runtime] Fix spec bug in TypedArrayConstruct with mutating iterables. · cc75535d
    Peter Marshall authored
    The spec requires that we use IterableToList, which we skipped for
    some arrays as an optimization. We can't skip this for arrays with
    objects though, because the objects may mutate the array during
    the copying step via valueOf side effects.
    
    Also clean up the implementation to use a runtime function rather
    than a builtin as the helper. Also reverses the result of the helper
    because I think it is a bit more intuitive that way.
    
    Bug: v8:6224
    Change-Id: I9199491abede4479785df6d9068331bc2d6e9c5e
    Reviewed-on: https://chromium-review.googlesource.com/471986Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44507}
    cc75535d
Name
Last commit
Last update
..
OWNERS Loading commit data...
array.js Loading commit data...
collection-iterator.js Loading commit data...
collection.js Loading commit data...
harmony-string-padding.js Loading commit data...
i18n.js Loading commit data...
macros.py Loading commit data...
messages.js Loading commit data...
prologue.js Loading commit data...
promise.js Loading commit data...
proxy.js Loading commit data...
runtime.js Loading commit data...
spread.js Loading commit data...
string.js Loading commit data...
templates.js Loading commit data...
typedarray.js Loading commit data...
v8natives.js Loading commit data...
weak-collection.js Loading commit data...