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

InitializeNumberFormat L23 throws TypeError instead of RangeError - fix #68 #91

Merged
merged 2 commits into from
Mar 18, 2022

Conversation

romulocintra
Copy link
Member

Closes #68

@romulocintra romulocintra requested a review from sffc March 18, 2022 08:35
@romulocintra romulocintra changed the title Fix #68 InitializeNumberFormat L23 throws TypeError instead of RangeError - fix #68 Mar 18, 2022
Copy link
Collaborator

@sffc sffc left a comment

Choose a reason for hiding this comment

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

thank you!

@sffc sffc merged commit 8d4b06a into tc39:master Mar 18, 2022
kangwoosukeq pushed a commit to prosyslab/v8 that referenced this pull request Apr 28, 2022
PR85 tc39/proposal-intl-numberformat-v3#85
Throw RangeError while roundingIncrement is not 1 and
minimumFractionDigits != maximumFractionDigits
Test by new test cases in intl/number-format/rounding-increment-v3.js

Add more unit test to check the resolved options of roundingIncrement,
minimumFractionDigits, and maximumFractionDigits.

PR91 tc39/proposal-intl-numberformat-v3#91
Throw TypeError instead of RangeError while roundingIncrement is not 1
and RoundingType is not fractionDigits
Test by intl402/NumberFormat/constructor-roundingIncrement-invalid.js
in test262

Bug: v8:10776
Change-Id: I071bfe8b3e844c5999144d74bb5f79ea9811e37b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3603059
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80196}
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.

Should InitializeNumberFormat throw a TypeError when "roundingIncrement" isn't supported?
2 participants