2016-10-10 03:43:44 +02:00
|
|
|
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
|
2017-08-14 05:01:11 +02:00
|
|
|
var $export = require('./_export');
|
|
|
|
var gOPD = require('./_object-gopd').f;
|
|
|
|
var anObject = require('./_an-object');
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
$export($export.S, 'Reflect', {
|
2017-08-14 05:01:11 +02:00
|
|
|
deleteProperty: function deleteProperty(target, propertyKey) {
|
2017-05-27 17:36:13 +02:00
|
|
|
var desc = gOPD(anObject(target), propertyKey);
|
2016-10-10 03:43:44 +02:00
|
|
|
return desc && !desc.configurable ? false : delete target[propertyKey];
|
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|