Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/AddToKeptObjects.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 var SLOT = require('internal-slot'); 5 5 … … 7 7 8 8 var ClearKeptObjects = require('./ClearKeptObjects'); 9 var Type = require('./Type'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 var $push = callBound('Array.prototype.push'); … … 14 15 15 16 module.exports = function AddToKeptObjects(object) { 16 if ( Type(object) !== 'Object') {17 if (!isObject(object)) { 17 18 throw new $TypeError('Assertion failed: `object` must be an Object'); 18 19 }
Note:
See TracChangeset
for help on using the changeset viewer.