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');
1717var nativeSort = uncurryThis ( [ ] . sort ) ;
1818var push = uncurryThis ( [ ] . push ) ;
1919
20- // IE8-
21- var FAILS_ON_UNDEFINED = fails ( function ( ) {
22- [ ] . sort ( undefined ) ;
23- } ) ;
2420// V8 bug
2521var 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
6965var getSortCompare = function ( comparefn ) {
7066 return function ( x , y ) {
Original file line number Diff line number Diff 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 = '' ;
You can’t perform that action at this time.
0 commit comments