'use strict';varGetIntrinsic=require('../GetIntrinsic');var$ObjectCreate=GetIntrinsic('%Object.create%',true);var$TypeError=GetIntrinsic('%TypeError%');var$SyntaxError=GetIntrinsic('%SyntaxError%');varType=require('./Type');varhasProto=!({__proto__:null}instanceofObject);// https://www.ecma-international.org/ecma-262/6.0/#sec-objectcreatemodule.exports=functionObjectCreate(proto,internalSlotsList){if(proto!==null&&Type(proto)!=='Object'){thrownew$TypeError('Assertion failed: `proto` must be null or an object');}varslots=arguments.length<2?[]:internalSlotsList;if(slots.length>0){thrownew$SyntaxError('es-abstract does not yet support internal slots');}if($ObjectCreate){return$ObjectCreate(proto);}if(hasProto){return{__proto__:proto};}if(proto===null){thrownew$SyntaxError('native Object.create support is required to create null objects');}varT=functionT(){};T.prototype=proto;returnnewT();};