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