'use strict';varGetIntrinsic=require('../GetIntrinsic');var$TypeError=GetIntrinsic('%TypeError%');varIsPropertyKey=require('./IsPropertyKey');varType=require('./Type');// https://www.ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrowmodule.exports=functionDeletePropertyOrThrow(O,P){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');}// eslint-disable-next-line no-param-reassignvarsuccess=deleteO[P];if(!success){thrownew$TypeError('Attempt to delete property failed.');}returnsuccess;};