mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
16 lines
918 B
TypeScript
16 lines
918 B
TypeScript
// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/polyfills/symbols.js
|
|
|
|
|
|
// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
|
|
|
|
/* istanbul ignore next (See: https://github.com/graphql/graphql-js/issues/2317) */
|
|
export const SYMBOL_ITERATOR = typeof Symbol === 'function' ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator
|
|
|
|
/* istanbul ignore next (See: https://github.com/graphql/graphql-js/issues/2317) */
|
|
|
|
export const SYMBOL_ASYNC_ITERATOR = // $FlowFixMe Flow doesn't define `Symbol.asyncIterator` yet
|
|
typeof Symbol === 'function' ? Symbol.asyncIterator : '@@asyncIterator';
|
|
/* istanbul ignore next (See: https://github.com/graphql/graphql-js/issues/2317) */
|
|
|
|
export const SYMBOL_TO_STRING_TAG = // $FlowFixMe Flow doesn't define `Symbol.toStringTag` yet
|
|
typeof Symbol === 'function' ? Symbol.toStringTag : '@@toStringTag'; |