graphql-js
1564174b - enhancement: remove extra ticks (#3754)

Commit
2 years ago
enhancement: remove extra ticks (#3754) Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads. This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links). https://github.com/tc39/proposal-faster-promise-adoption https://github.com/tc39/ecma262/issues/2770 https://github.com/tc39/ecma262/pull/2772 https://github.com/tc39/ecma262/pull/1250 https://v8.dev/blog/fast-async Depends on #3793
Author
Parents
Loading