Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
438 bytes
|
Line | |
---|
1 | var DESCRIPTORS = require('../internals/descriptors');
|
---|
2 | var definePropertyModule = require('../internals/object-define-property');
|
---|
3 | var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
---|
4 |
|
---|
5 | module.exports = DESCRIPTORS ? function (object, key, value) {
|
---|
6 | return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
---|
7 | } : function (object, key, value) {
|
---|
8 | object[key] = value;
|
---|
9 | return object;
|
---|
10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.