Comment #1 on issue 4125 by [email protected]: Array.prototype.sort
doesn't call ToObject on receiver
https://code.google.com/p/v8/issues/detail?id=4125#c1
The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/cbf9137707edcc6c4e09b2a680667a52c3226621
commit cbf9137707edcc6c4e09b2a680667a52c3226621
Author: dehrenberg <[email protected]>
Date: Thu Jun 11 21:43:08 2015
Add ToObject call in Array.prototype.sort
The spec says ToObject is called on the receiver, and this is
observable if you call sort on a primitive. This patch trivially
adds the call and a test.
BUG=v8:4125
R=adamk
LOG=Y
Review URL: https://codereview.chromium.org/1178193004
Cr-Commit-Position: refs/heads/master@{#28972}
[modify]
http://crrev.com/cbf9137707edcc6c4e09b2a680667a52c3226621/src/array.js
[modify]
http://crrev.com/cbf9137707edcc6c4e09b2a680667a52c3226621/test/mjsunit/array-sort.js
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.