Description[es6] fix IsConcatSpreadable() algorithm in runtime-array.cc
The ordering of the "IsArray()" check for IsConcatSpreadable() was incorrect previously --- IsArray() is only used if Get(O, @@isConcatSpreadable) is undefined. Without this fix, it's not possible for Array subclasses to opt out of spreading
22.1.3.1.1 http://www.ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable
BUG=v8:3764
LOG=N
R=arv@chromium.org, dslomov@chromium.org, rossberg@chromium.org
Committed: https://crrev.com/e7d4bf87adcd32da163d8c6a5af82246f4f83edc
Cr-Commit-Position: refs/heads/master@{#29127}
Patch Set 1 #
Messages
Total messages: 8 (1 generated)
|