main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
566 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var anObject = require('../internals/an-object');
|
---|
4 | var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
---|
5 |
|
---|
6 | // `Reflect.deleteProperty` method
|
---|
7 | // https://tc39.es/ecma262/#sec-reflect.deleteproperty
|
---|
8 | $({ target: 'Reflect', stat: true }, {
|
---|
9 | deleteProperty: function deleteProperty(target, propertyKey) {
|
---|
10 | var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);
|
---|
11 | return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
|
---|
12 | }
|
---|
13 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.