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

11 lines
323 B
JavaScript

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;
};