PromoCursed/node_modules/core-js/internals/create-property.js

10 lines
400 B
JavaScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
'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;
};