mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
13 lines
410 B
JavaScript
13 lines
410 B
JavaScript
var global = require('../internals/global');
|
|
var shared = require('../internals/shared');
|
|
var uid = require('../internals/uid');
|
|
var NATIVE_SYMBOL = require('../internals/native-symbol');
|
|
|
|
var Symbol = global.Symbol;
|
|
var store = shared('wks');
|
|
|
|
module.exports = function (name) {
|
|
return store[name] || (store[name] = NATIVE_SYMBOL && Symbol[name]
|
|
|| (NATIVE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
|
};
|