main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
452 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var DESCRIPTORS = require('../internals/descriptors');
|
---|
| 3 | var definePropertyModule = require('../internals/object-define-property');
|
---|
| 4 | var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
---|
| 5 |
|
---|
| 6 | module.exports = DESCRIPTORS ? function (object, key, value) {
|
---|
| 7 | return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
---|
| 8 | } : function (object, key, value) {
|
---|
| 9 | object[key] = value;
|
---|
| 10 | return object;
|
---|
| 11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.