'use strict';varGetIntrinsic=require('../GetIntrinsic');var$TypeError=GetIntrinsic('%TypeError%');varGet=require('./Get');varIsCallable=require('./IsCallable');varType=require('./Type');// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstancemodule.exports=functionOrdinaryHasInstance(C,O){if(IsCallable(C)===false){returnfalse;}if(Type(O)!=='Object'){returnfalse;}varP=Get(C,'prototype');if(Type(P)!=='Object'){thrownew$TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.');}returnOinstanceofC;};