Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2015/OrdinaryHasInstance.js
r0c6b92a r79a0317 5 5 var Get = require('./Get'); 6 6 var IsCallable = require('./IsCallable'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance … … 13 14 return false; 14 15 } 15 if ( Type(O) !== 'Object') {16 if (!isObject(O)) { 16 17 return false; 17 18 } 18 19 var P = Get(C, 'prototype'); 19 if ( Type(P) !== 'Object') {20 if (!isObject(P)) { 20 21 throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.'); 21 22 }
Note:
See TracChangeset
for help on using the changeset viewer.