Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@leeguooooo
Copy link

Summary

Add detection and warning for incorrect Map/Set polyfill implementations that don't properly support non-string keys.

Details

  • Add BadMapPolyfill module to detect problematic implementations
  • Include comprehensive tests for the detection logic
  • Warn users when their polyfills may cause React to malfunction

This helps developers identify issues with polyfills that break React's internal mechanisms.

Test Plan

  • Added unit tests in BadMapPolyfill-test.js
  • Tests cover detection of bad Map/Set implementations
  • Verifies warning messages are shown appropriately

Add detection and warning for incorrect Map/Set polyfill implementations
that don't properly support non-string keys. This helps developers identify
issues with polyfills that break React's internal mechanisms.

- Add BadMapPolyfill module to detect problematic implementations
- Include comprehensive tests for the detection logic
- Warn users when their polyfills may cause React to malfunction

Fixes issues where bad polyfills silently break React functionality.
@leeguooooo leeguooooo changed the title feat: Add warning for bad Map/Set polyfills [polyfill] Add warning for bad Map/Set polyfills Jun 19, 2025
Copy link

@hardanishsingh1 hardanishsingh1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions
Copy link

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Oct 23, 2025
@leeguooooo
Copy link
Author

bump

@github-actions github-actions bot removed the Resolution: Stale Automatically closed due to inactivity label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants