• dehrenberg's avatar
    In Array.of and Array.from, fall back to DefineOwnProperty · b23c328f
    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}
    b23c328f
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...