amis-rpc-design/node_modules/core-js/internals/delete-property-or-throw.js
2023-10-07 19:42:30 +08:00

9 lines
247 B
JavaScript

'use strict';
var tryToString = require('../internals/try-to-string');
var $TypeError = TypeError;
module.exports = function (O, P) {
if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
};