2016-10-10 03:43:44 +02:00
|
|
|
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
|
2017-04-20 03:09:25 +02:00
|
|
|
var $export = require('./$.export')
|
|
|
|
, getDesc = require('./$').getDesc
|
|
|
|
, anObject = require('./$.an-object');
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
$export($export.S, 'Reflect', {
|
|
|
|
deleteProperty: function deleteProperty(target, propertyKey){
|
2017-04-20 03:09:25 +02:00
|
|
|
var desc = getDesc(anObject(target), propertyKey);
|
2016-10-10 03:43:44 +02:00
|
|
|
return desc && !desc.configurable ? false : delete target[propertyKey];
|
|
|
|
}
|
|
|
|
});
|