well-known-symbol-define.js 470 B

123456789101112
  1. 'use strict';
  2. var path = require('../internals/path');
  3. var hasOwn = require('../internals/has-own-property');
  4. var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');
  5. var defineProperty = require('../internals/object-define-property').f;
  6. module.exports = function (NAME) {
  7. var Symbol = path.Symbol || (path.Symbol = {});
  8. if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
  9. value: wrappedWellKnownSymbolModule.f(NAME)
  10. });
  11. };