dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…