DescriptionEnsure Array.prototype.indexOf returns +0 rather than -0
A recent ES2016 draft spec clarification indicates that, if -0 is
passed into Array.prototype.indexOf or Array.prototype.lastIndexOf
as the starting index, and the result is found at index 0, then +0
rather than -0 should be returned. This patch ensures that V8 has
that result, which is consistent with what some other browsers
return. The patch allows a couple test262 tests to pass.
R=adamk
LOG=Y
Committed: https://crrev.com/8798ef2d1c254c2d1898a6dd56bf98ddfd60cce5
Cr-Commit-Position: refs/heads/master@{#34229}
Patch Set 1 #Patch Set 2 : Enable test262 tests #
Messages
Total messages: 16 (7 generated)
|