Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/InstanceofOperator.js
r0c6b92a r79a0317 5 5 var $TypeError = require('es-errors/type'); 6 6 7 var $hasInstance = GetIntrinsic(' Symbol.hasInstance', true);7 var $hasInstance = GetIntrinsic('%Symbol.hasInstance%', true); 8 8 9 9 var Call = require('./Call'); … … 12 12 var OrdinaryHasInstance = require('./OrdinaryHasInstance'); 13 13 var ToBoolean = require('./ToBoolean'); 14 var Type = require('./Type'); 14 15 var isObject = require('../helpers/isObject'); 15 16 16 17 // https://262.ecma-international.org/6.0/#sec-instanceofoperator 17 18 18 19 module.exports = function InstanceofOperator(O, C) { 19 if ( Type(O) !== 'Object') {20 if (!isObject(O)) { 20 21 throw new $TypeError('Assertion failed: Type(O) is not Object'); 21 22 }
Note:
See TracChangeset
for help on using the changeset viewer.