debian-mirror-gitlab/core-js/internals/set-global.js

11 lines
232 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
var global = require('../internals/global');
var hide = require('../internals/hide');
module.exports = function (key, value) {
try {
hide(global, key, value);
} catch (error) {
global[key] = value;
} return value;
};