10 lines
400 B
JavaScript
10 lines
400 B
JavaScript
|
'use strict';
|
||
|
var DESCRIPTORS = require('../internals/descriptors');
|
||
|
var definePropertyModule = require('../internals/object-define-property');
|
||
|
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
||
|
|
||
|
module.exports = function (object, key, value) {
|
||
|
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
||
|
else object[key] = value;
|
||
|
};
|