amis-rpc-design/node_modules/core-js/internals/create-non-enumerable-property.js

12 lines
452 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
'use strict';
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;
};