[Flight] Include env in ReactAsyncInfo and ReactIOInfo
Stacked on #33395.
This lets us keep track of which environment this was fetched and awaited.
Currently the IO and await is in the same environment. It's just kept when forwarded. Once we support forwarding information from a Promise fetched from another environment and awaited in this environment then the await can end up being in a different environment.
There's a question of when the await is inside Flight itself such as when you return a promise fetched from another environment whether that should mean that the await is in the current environment. I don't think so since the original stack trace is the best stack trace. It's only if you await it in user space in this environment first that this might happen and even then it should only be considered if there wasn't a better await earlier or if reading from the other environment was itself I/O.
The timing of when we read environmentName() is a little interesting here too.
Comparing: 45da4e055dc7a2b9de6abdae0709e242f8091636...725448912d17de5d1329bae6ce47e848ab45a781
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
| Name | +/- | Base | Current | +/- gzip | Base gzip | Current gzip |
|---|---|---|---|---|---|---|
| oss-stable/react-dom/cjs/react-dom.production.js | = | 6.68 kB | 6.68 kB | +0.11% | 1.83 kB | 1.83 kB |
| oss-stable/react-dom/cjs/react-dom-client.production.js | = | 529.82 kB | 529.82 kB | = | 93.51 kB | 93.51 kB |
| oss-experimental/react-dom/cjs/react-dom.production.js | = | 6.69 kB | 6.69 kB | +0.11% | 1.83 kB | 1.83 kB |
| oss-experimental/react-dom/cjs/react-dom-client.production.js | = | 650.91 kB | 650.91 kB | = | 114.63 kB | 114.64 kB |
| facebook-www/ReactDOM-prod.classic.js | = | 675.86 kB | 675.86 kB | = | 118.91 kB | 118.92 kB |
| facebook-www/ReactDOM-prod.modern.js | = | 666.14 kB | 666.14 kB | = | 117.30 kB | 117.30 kB |
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by :no_entry_sign: dangerJS against 725448912d17de5d1329bae6ce47e848ab45a781