Skip to content

Conversation

dionisnote
Copy link
Contributor

@dionisnote dionisnote commented Sep 18, 2020

Added check for specific symbols in polyfills/symbols because in nodejs 8 Symbol exists, but Symbol.asyncIterator is not.
This cause an error
message: "Subscription field must return Async Iterable. Received: { next: [function next], return: [function return], throw: [function throw], @@asyncIterator: [function] }."
just because isAsyncIterable returns false
Checking for specific symbols in Symbol will fix it

@dionisnote dionisnote force-pushed the polyfills-asynciteratable-fix-for-node-8 branch 2 times, most recently from fca1cab to 7d4c875 Compare September 18, 2020 17:24
@dionisnote dionisnote force-pushed the polyfills-asynciteratable-fix-for-node-8 branch from 7d4c875 to abcc4b0 Compare September 18, 2020 18:48
@IvanGoncharov IvanGoncharov added the PR: bug fix 🐞 requires increase of "patch" version number label Sep 20, 2020
@IvanGoncharov IvanGoncharov merged commit c2f97bb into graphql:master Sep 20, 2020
@IvanGoncharov
Copy link
Member

@dionisnote Thanks for PR 👍
Merged but please note that we support only current versions of Node.js: https://nodejs.org/en/about/releases/
And this list doesn't include Node8.

tgriesser added a commit to tgriesser/graphql-js that referenced this pull request Nov 13, 2020
…ription

* master: (211 commits)
  Update deps (graphql#2844)
  resources: use named groups in RegExp (graphql#2840)
  TS: exclude integration tests from root tsconfig.json (graphql#2838)
  Flow: remove support for measuring Flow coverage (graphql#2837)
  CI: test on node 15 (graphql#2836)
  Update deps (graphql#2835)
  build: add support for experimental releases (graphql#2831)
  15.4.0
  Update deps (graphql#2827)
  Update deps (graphql#2825)
  integrationTests: add Flow test (graphql#2819)
  fix: ensure variance of types matches how values are used (graphql#2786)
  Cleanup '__fixtures__' leftovers (graphql#2818)
  Convert fixtures to be JS files (graphql#2816)
  Update deps (graphql#2815)
  benchmark: extract benchmarks into separate folder and run them on NPM package
  Update deps (graphql#2810)
  Update outdated documentation (graphql#2806)
  Make print() break arguments over multiple lines (graphql#2797)
  Added check for specific symbols in polyfills/symbols (graphql#2804)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants