Undefined value in Array.prototype.sort not throwing error
Reported by
david.sm...@googlemail.com,
Apr 26 2018
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36 Steps to reproduce the problem: 1. Create an array dataset that has a number of objects 2. Each array item should have a key/value pair with an integer value 3. Remove the key/value pair from one of the items 4. Use the Array.prototype.sort method What is the expected behavior? I assume that when the sort finds an undefined error it should indeed error out of the sort loop and throw an error indicating such. What went wrong? The Array.prototype.sort method fails silently Did this work before? N/A Chrome version: 66.0.3359.117 Channel: stable OS Version: OS X 10.13.4 Flash Version: While not a problem with small datasets, it could be impossible to know why it's not sorting when you have very large datasets with a large number of key/value pairs. JSFiddle: https://jsfiddle.net/grn3gkr9/
,
Apr 26 2018
Closing as per it matches the spec. |
||
►
Sign in to add a comment |
||
Comment 1 by woxxom@gmail.com
, Apr 26 2018