Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Issue 2694673003: NumberFormat: default mnsd value is 1 (Closed)

Created:
3 years, 10 months ago by vabr (Chromium)
Modified:
3 years, 10 months ago
Reviewers:
Dan Ehrenberg
CC:
v8-reviews_googlegroups.com, jungshik at Google
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

NumberFormat: default mnsd value is 1 CreateNumberFormat of src/js/i18n.js implements http://www.ecma-international.org/ecma-402/1.0/#sec-11.1.1.1, but has a typo in step 33a. The spec says that the default value for minimumSignificantDigits should be 1, while the script set it to 0. This CL fixes that typo and adds a test for that. BUG=v8:5554 Review-Url: https://codereview.chromium.org/2694673003 Cr-Commit-Position: refs/heads/master@{#43197} Committed: https://chromium.googlesource.com/v8/v8/+/0559fd7082fa9c12efd081e3e74fb34ecf6158ca

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/js/i18n.js View 1 chunk +1 line, -1 line 0 comments Download
M test/intl/number-format/check-digit-ranges.js View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
vabr (Chromium)
Hello Dan, Would you mind also reviewing this one? Thanks, Vaclav
3 years, 10 months ago (2017-02-13 22:31:32 UTC) #7
Dan Ehrenberg
lgtm For bonus points, you could make a test262 test verifying the fix so that ...
3 years, 10 months ago (2017-02-14 13:43:46 UTC) #8
Dan Ehrenberg
cc jshin if he is interested in taking a look, but this seems like a ...
3 years, 10 months ago (2017-02-14 13:44:37 UTC) #9
Dan Ehrenberg
By the way, the most relevant spec text to look at for implementing ECMA 402 ...
3 years, 10 months ago (2017-02-14 13:46:23 UTC) #10
vabr (Chromium)
Thanks, Dan, both for the review, and for the useful information. I'm happy to write ...
3 years, 10 months ago (2017-02-14 17:11:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694673003/1
3 years, 10 months ago (2017-02-14 17:11:35 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/v8/v8/+/0559fd7082fa9c12efd081e3e74fb34ecf6158ca
3 years, 10 months ago (2017-02-14 17:12:55 UTC) #16
Dan Ehrenberg
3 years, 10 months ago (2017-02-14 17:27:08 UTC) #17
Message was sent while issue was closed.
On 2017/02/14 17:11:17, vabr (OOO until late Feb) wrote:
> Thanks, Dan, both for the review, and for the useful information.
> 
> I'm happy to write the test262 test, and will try the approach with creating
the
> patch locally in the V8 checkout. I will lend this CL as it is, and once I'm
> done with the test262, I will consult you for whether it should replace the
test
> added in test/intl/number-format/check-digit-ranges.js.
> 
> Also thanks for the pointer to the current draft spec. The paragraph numbers
in
> the names of the test262 tests seem to refer the
> http://www.ecma-international.org/ecma-402/1.0, correct?
> 
> Cheers,
> Vaclav

Paragraph numbers in the names of test262 tests is something that was done in
the past, but is not the current practice for new tests, whose naming convention
is documented at https://github.com/tc39/test262/blob/master/CONTRIBUTING.md .
In general, I believe tests with old-style names might refer to a range of
different specs, but the Intl ones probably refer to that document, though some
might have been updated to the v2 spec at
http://www.ecma-international.org/ecma-402/2.0/ (the contents were definitely
updated; I'm not sure whether the names were). The tests are generally testing
for the top-of-tree behavior, which is at https://tc39.github.io/ecma402/ .

Anyway, for this, I think it'd be reasonable to make a new test file rather than
squeeze it into an existing file. Generally, test262 tries to keep files
relatively small and focused.

Powered by Google App Engine
This is Rietveld 408576698