'use strict';varGetIntrinsic=require('../GetIntrinsic');var$TypeError=GetIntrinsic('%TypeError%');varCreateDataProperty=require('./CreateDataProperty');varIsPropertyKey=require('./IsPropertyKey');varType=require('./Type');// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrowmodule.exports=functionCreateDataPropertyOrThrow(O,P,V){if(Type(O)!=='Object'){thrownew$TypeError('Assertion failed: Type(O) is not Object');}if(!IsPropertyKey(P)){thrownew$TypeError('Assertion failed: IsPropertyKey(P) is not true');}varsuccess=CreateDataProperty(O,P,V);if(!success){thrownew$TypeError('unable to create data property');}returnsuccess;};