symbols.js 1.1 KB

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.SYMBOL_TO_STRING_TAG = exports.SYMBOL_ASYNC_ITERATOR = exports.SYMBOL_ITERATOR = void 0;
  6. // In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
  7. // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
  8. var SYMBOL_ITERATOR = typeof Symbol === 'function' ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator
  9. // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
  10. exports.SYMBOL_ITERATOR = SYMBOL_ITERATOR;
  11. var SYMBOL_ASYNC_ITERATOR = // $FlowFixMe Flow doesn't define `Symbol.asyncIterator` yet
  12. typeof Symbol === 'function' ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
  13. exports.SYMBOL_ASYNC_ITERATOR = SYMBOL_ASYNC_ITERATOR;
  14. var SYMBOL_TO_STRING_TAG = // $FlowFixMe Flow doesn't define `Symbol.toStringTag` yet
  15. typeof Symbol === 'function' ? Symbol.toStringTag : '@@toStringTag';
  16. exports.SYMBOL_TO_STRING_TAG = SYMBOL_TO_STRING_TAG;