2019-09-25 13:30:05 +05:30
|
|
|
var global = require('../internals/global');
|
2019-10-31 01:37:42 +05:30
|
|
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
2019-09-25 13:30:05 +05:30
|
|
|
|
|
|
|
module.exports = function (key, value) {
|
|
|
|
try {
|
2019-10-31 01:37:42 +05:30
|
|
|
createNonEnumerableProperty(global, key, value);
|
2019-09-25 13:30:05 +05:30
|
|
|
} catch (error) {
|
|
|
|
global[key] = value;
|
|
|
|
} return value;
|
|
|
|
};
|