From 1db2e35f8ee370f51ed0113f283260985bde0a30 Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Wed, 17 Apr 2024 16:34:09 +0000 Subject: [PATCH] Promote ASYNC_ITERATOR symbol to React Symbols (#28851) So that when we end up referring to it in more places, it's only one. We don't do this same pattern for regular `Symbol.iterator` because we also support the string `"@@iterator"` for backwards compatibility. DiffTrain build for [c0cf7c696cf454b49b35d8dae01ab111739dab46](https://github.com/facebook/react/commit/c0cf7c696cf454b49b35d8dae01ab111739dab46) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/ReactFlightDOMClient-dev.modern.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 9b70bd74e793e..e94185c066ae8 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -7909d8eabb7a702618f51e16a351df41aa8da88e +c0cf7c696cf454b49b35d8dae01ab111739dab46 diff --git a/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js b/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js index 00d69c98aa0e9..4f930c09a6440 100644 --- a/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js @@ -303,6 +303,7 @@ if (__DEV__) { // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for("react.element"); var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var ASYNC_ITERATOR = Symbol.asyncIterator; function readTemporaryReference(set, id) { if (id < 0 || id >= set.length) { @@ -1172,8 +1173,6 @@ if (__DEV__) { } } - var ASYNC_ITERATOR = Symbol.asyncIterator; - function resolveErrorDev(response, id, digest, message, stack) { var error = new Error( message ||