UNPKG

251 BJavaScriptView Raw
1'use strict';
2var tryToString = require('../internals/try-to-string');
3
4var $TypeError = TypeError;
5
6module.exports = function (O, P) {
7 if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
8};