You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
400 B
10 lines
400 B
'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;
|
|
};
|