• littledan's avatar
    Allow TypedArrays to be initialized with iterables · 40420f67
    littledan authored
    In ES6, the TypedArray constructor can be called either with an
    array-like object or an iterable. The code previously handled
    only array-like objects. This patch switches to supporting
    iterables while throwing in an optimization to make Arrays
    get allocated the old way, without an extra copy.
    
    BUG=v8:4090
    LOG=Y
    R=adamk
    
    Review URL: https://codereview.chromium.org/1181903003
    
    Cr-Commit-Position: refs/heads/master@{#29031}
    40420f67
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
test262-es6 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...