File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ var WEBKIT = require('../internals/environment-webkit-version');
17
17
var nativeSort = uncurryThis ( [ ] . sort ) ;
18
18
var push = uncurryThis ( [ ] . push ) ;
19
19
20
- // IE8-
21
- var FAILS_ON_UNDEFINED = fails ( function ( ) {
22
- [ ] . sort ( undefined ) ;
23
- } ) ;
24
20
// V8 bug
25
21
var FAILS_ON_NULL = fails ( function ( ) {
26
22
[ ] . sort ( null ) ;
@@ -64,7 +60,7 @@ var STABLE_SORT = !fails(function () {
64
60
return result !== 'DGBEFHACIJK' ;
65
61
} ) ;
66
62
67
- var FORCED = FAILS_ON_UNDEFINED || ! FAILS_ON_NULL || ! STRICT_METHOD || ! STABLE_SORT ;
63
+ var FORCED = ! FAILS_ON_NULL || ! STRICT_METHOD || ! STABLE_SORT ;
68
64
69
65
var getSortCompare = function ( comparefn ) {
70
66
return function ( x , y ) {
Original file line number Diff line number Diff line change @@ -800,8 +800,6 @@ GLOBAL.tests = {
800
800
try {
801
801
[ 1 , 2 , 3 ] . sort ( null ) ;
802
802
} catch ( error2 ) {
803
- [ 1 , 2 , 3 ] . sort ( undefined ) ;
804
-
805
803
// stable sort
806
804
var array = [ ] ;
807
805
var result = '' ;
You can’t perform that action at this time.
0 commit comments