Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Aug 12, 2025

Noticed in https://github.com/facebook/react/pull/34189/files#diff-9a24629ff29cdf7a1ee0bf2b99c1db18743b46bbc6d0a204f73042ae44b0bb3bR199 that the test was passing without asserting on the TypeError. Was just another JS type coercion bug.

@meta-cla meta-cla bot added the CLA Signed label Aug 12, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Aug 12, 2025
@react-sizebot
Copy link

react-sizebot commented Aug 12, 2025

Comparing: 0422a00...85e2c99

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 = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.16 kB 530.16 kB = 93.39 kB 93.39 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 654.53 kB 654.53 kB = 115.11 kB 115.11 kB
facebook-www/ReactDOM-prod.classic.js = 674.30 kB 674.30 kB = 118.29 kB 118.29 kB
facebook-www/ReactDOM-prod.modern.js = 664.73 kB 664.73 kB = 116.64 kB 116.64 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 85e2c99

@eps1lon eps1lon force-pushed the sebbie/consolemock branch from 26d16ab to aba2390 Compare August 12, 2025 20:39
@eps1lon eps1lon force-pushed the sebbie/consolemock branch from aba2390 to 85e2c99 Compare August 12, 2025 20:43
Comment on lines +385 to +386
typeof expectedMessage === 'string' &&
(normalizedMessage === expectedMessage ||
Copy link
Collaborator Author

@eps1lon eps1lon Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This forbids console.error('undefined') and assertConsoleErrorDev([undefined]) but that doesn't seem like a valid scenario anyway.

@eps1lon eps1lon marked this pull request as ready for review August 12, 2025 20:54
@eps1lon eps1lon merged commit 9433fe3 into facebook:main Aug 13, 2025
244 checks passed
@eps1lon eps1lon deleted the sebbie/consolemock branch August 13, 2025 06:50
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 16, 2025
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants