Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyfill: Refine valueOf exception message (again) #2691

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

justingrant
Copy link
Collaborator

Continue where #2667 left off by further clarifying this error message and fixing a mistake where +foo was treated as a string coercion, not the number coercion that it is.

@justingrant justingrant added non-prod-polyfill THIS POLYFILL IS NOT FOR PRODUCTION USE! no-spec-text PR can be ignored by implementors labels Sep 29, 2023
@justingrant justingrant marked this pull request as draft September 29, 2023 21:30
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (2423328) 96.22% compared to head (73c8de1) 96.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2691   +/-   ##
=======================================
  Coverage   96.22%   96.22%           
=======================================
  Files          20       20           
  Lines       11986    11987    +1     
  Branches     2227     2227           
=======================================
+ Hits        11534    11535    +1     
  Misses        389      389           
  Partials       63       63           
Files Coverage Δ
polyfill/lib/ecmascript.mjs 98.56% <100.00%> (+<0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Continue where #2667 left off by further clarifying this error message
and fixing a mistake where `+foo` was treated as a string coercion, not
the number coercion that it is.
@justingrant justingrant marked this pull request as ready for review September 29, 2023 21:36
@Ms2ger Ms2ger merged commit 820fffd into main Oct 2, 2023
@Ms2ger Ms2ger deleted the justingrant-patch-1 branch October 2, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-spec-text PR can be ignored by implementors non-prod-polyfill THIS POLYFILL IS NOT FOR PRODUCTION USE!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants