mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
11 lines
438 B
JavaScript
11 lines
438 B
JavaScript
|
var DESCRIPTORS = require('../internals/descriptors');
|
||
|
var definePropertyModule = require('../internals/object-define-property');
|
||
|
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
||
|
|
||
|
module.exports = DESCRIPTORS ? function (object, key, value) {
|
||
|
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
||
|
} : function (object, key, value) {
|
||
|
object[key] = value;
|
||
|
return object;
|
||
|
};
|