mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
11 lines
465 B
JavaScript
11 lines
465 B
JavaScript
|
'use strict';
|
||
|
var toPrimitive = require('../internals/to-primitive');
|
||
|
var definePropertyModule = require('../internals/object-define-property');
|
||
|
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
||
|
|
||
|
module.exports = function (object, key, value) {
|
||
|
var propertyKey = toPrimitive(key);
|
||
|
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
||
|
else object[propertyKey] = value;
|
||
|
};
|