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