{"action":"closed","issue":{"url":"https://api.github.com/repos/kangax/compat-table/issues/773","repository_url":"https://api.github.com/repos/kangax/compat-table","labels_url":"https://api.github.com/repos/kangax/compat-table/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/kangax/compat-table/issues/773/comments","events_url":"https://api.github.com/repos/kangax/compat-table/issues/773/events","html_url":"https://github.com/kangax/compat-table/issues/773","id":146023606,"number":773,"title":"Array.prototype.sort for ES5 test is wrong","user":{"login":"davit-yavryan","id":8176311,"avatar_url":"https://avatars.githubusercontent.com/u/8176311?v=3","gravatar_id":"","url":"https://api.github.com/users/davit-yavryan","html_url":"https://github.com/davit-yavryan","followers_url":"https://api.github.com/users/davit-yavryan/followers","following_url":"https://api.github.com/users/davit-yavryan/following{/other_user}","gists_url":"https://api.github.com/users/davit-yavryan/gists{/gist_id}","starred_url":"https://api.github.com/users/davit-yavryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davit-yavryan/subscriptions","organizations_url":"https://api.github.com/users/davit-yavryan/orgs","repos_url":"https://api.github.com/users/davit-yavryan/repos","events_url":"https://api.github.com/users/davit-yavryan/events{/privacy}","received_events_url":"https://api.github.com/users/davit-yavryan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T15:24:38Z","updated_at":"2016-04-05T15:42:46Z","closed_at":"2016-04-05T15:42:46Z","body":"http://kangax.github.io/compat-table/es5/#test-Miscellaneous_Array.prototype.sort:_compareFn_must_be_function_or_undefined\r\n\r\nShouldn't Array.prototype.sort ES5 test be like\r\n```\r\nfunction () {\r\n    try {\r\n        return [ 2, 1 ].sort(null)[0] === 1;\r\n    } catch (enull) {}\r\n    try {\r\n        return [ 2, 1 ].sort(true)[0] === 1;\r\n    } catch (etrue) {}\r\n    try {\r\n        return [ 2, 1 ].sort({})[0] === 1;\r\n    } catch (eobj) {}\r\n    try {\r\n        return [ 2, 1 ].sort([])[0] === 1;\r\n    } catch (earr) {}\r\n    try {\r\n        return [ 2, 1 ].sort(/a/g);\r\n    } catch (eregex) {}\r\n    try {\r\n        return [ 2, 1 ].sort(function (a, b) { return a > b; })[ 0 ] === 1;\r\n    } catch (efunction) {}\r\n    try {\r\n        return [ 2, 1 ].sort()[0] === 1;\r\n    } catch (eundefined) {}\r\n    return false;\r\n}\r\n```\r\n\r\nNote: you had return true on try pass and return false at the end (So that Latest Chrome has considered as non supporting)"}}