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