debian-mirror-gitlab/core-js/internals/set-global.js
2019-09-25 13:30:05 +05:30

10 lines
232 B
JavaScript

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