Skip to content

Commit 9e1c893

Browse files
committed
drop IE8- sort fix
1 parent 1069ad7 commit 9e1c893

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/core-js/modules/es.array.sort.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ var WEBKIT = require('../internals/environment-webkit-version');
1717
var nativeSort = uncurryThis([].sort);
1818
var push = uncurryThis([].push);
1919

20-
// IE8-
21-
var FAILS_ON_UNDEFINED = fails(function () {
22-
[].sort(undefined);
23-
});
2420
// V8 bug
2521
var FAILS_ON_NULL = fails(function () {
2622
[].sort(null);
@@ -64,7 +60,7 @@ var STABLE_SORT = !fails(function () {
6460
return result !== 'DGBEFHACIJK';
6561
});
6662

67-
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
63+
var FORCED = !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
6864

6965
var getSortCompare = function (comparefn) {
7066
return function (x, y) {

tests/compat/tests.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,6 @@ GLOBAL.tests = {
800800
try {
801801
[1, 2, 3].sort(null);
802802
} catch (error2) {
803-
[1, 2, 3].sort(undefined);
804-
805803
// stable sort
806804
var array = [];
807805
var result = '';

0 commit comments

Comments
 (0)