_wks-define.js 417 B

123456789
  1. var global = require('./_global');
  2. var core = require('./_core');
  3. var LIBRARY = require('./_library');
  4. var wksExt = require('./_wks-ext');
  5. var defineProperty = require('./_object-dp').f;
  6. module.exports = function (name) {
  7. var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  8. if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
  9. };