mirror of https://github.com/jkjoy/sunpeiwen.git
9 lines
294 B
JavaScript
9 lines
294 B
JavaScript
var dP = require('./_object-dp');
|
|
var createDesc = require('./_property-desc');
|
|
module.exports = require('./_descriptors') ? function (object, key, value) {
|
|
return dP.f(object, key, createDesc(1, value));
|
|
} : function (object, key, value) {
|
|
object[key] = value;
|
|
return object;
|
|
};
|