dillon1000/react

Commit

Remove Numeric Fallback of Symbols (#23348)

This was already defeating the XSS issue that Symbols was meant to protect
against. So you were already supposed to use a polyfill for security.

We rely on real Symbol.for in Flight for Server Components so those require
real symbols anyway.

We also don't really support IE without additional polyfills anyway.
Browse files
Changed paths5 files
First-parent comparison
M packages/react/src/__tests__/ReactElement-test.js ModifiedM packages/react/src/__tests__/ReactElementJSX-test.js ModifiedM packages/shared/ReactSymbols.js ModifiedM packages/shared/__tests__/ReactSymbols-test.internal.js ModifiedM packages/shared/isValidElementType.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…