Skip to content

Conversation

@keithamus
Copy link
Contributor

Polyfills which have an apply() method may sometimes unconditionally polyfill code. This propagates up to our main apply() function, which is not ideal.

Instead the apply() function should only apply polyfills that are needed. This PR changes this to ensure that polyfills are only applied when they are unsupported.

Copilot AI review requested due to automatic review settings April 7, 2025 10:05
@keithamus keithamus requested a review from a team as a code owner April 7, 2025 10:06
@keithamus keithamus requested a review from bteng22 April 7, 2025 10:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that polyfills are only applied to unsupported functionalities.

  • Changed the apply() function to conditionally apply polyfills only if they are not supported.

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@bteng22 bteng22 merged commit b1d3a98 into main Apr 7, 2025
5 checks passed
@bteng22 bteng22 deleted the Apply-polyfills-only-when-unsupported branch April 7, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants