GoScrobble/web/node_modules/core-js-pure/internals/set-global.js

11 lines
323 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
var global = require('../internals/global');
module.exports = function (key, value) {
try {
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty(global, key, { value: value, configurable: true, writable: true });
} catch (error) {
global[key] = value;
} return value;
};