Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/SortIndexedProperties.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-bind/callBound');4 5 3 var $TypeError = require('es-errors/type'); 4 var callBound = require('call-bound'); 5 var isInteger = require('math-intrinsics/isInteger'); 6 6 7 7 var Get = require('./Get'); 8 8 var HasProperty = require('./HasProperty'); 9 9 var ToString = require('./ToString'); 10 var Type = require('./Type');11 10 12 11 var isAbstractClosure = require('../helpers/isAbstractClosure'); 13 var is Integer = require('../helpers/isInteger');12 var isObject = require('../helpers/isObject'); 14 13 15 14 var $push = callBound('Array.prototype.push'); … … 19 18 20 19 module.exports = function SortIndexedProperties(obj, len, SortCompare, holes) { 21 if ( Type(obj) !== 'Object') {20 if (!isObject(obj)) { 22 21 throw new $TypeError('Assertion failed: Type(obj) is not Object'); 23 22 }
Note:
See TracChangeset
for help on using the changeset viewer.