-
Notifications
You must be signed in to change notification settings - Fork 30k
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
node 12.11.0: Scientific & Engineering notation NumberFormat bug #29734
Comments
I don't know if throwing an error is spec-compliant, but I figured that the "unit" option requires /cc @nodejs/intl @nodejs/v8 |
it may be that the unit data is omitted from the 'small icu' default set and it should now be included now that units are present. |
The data are needed for new Intl.NumberFormat options added by V8. Fixes: nodejs#29734
I just ran these tests on the official amd64/node:current-buster Docker image after updating to use v12.11.0 and can confirm that this bug is widespread and not exclusive to Windows. |
The data are needed for new Intl.NumberFormat options added by V8. Fixes: #29734 PR-URL: #29735 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Version: v12.11.0
Platforms:
Windows Server 2019 x64
Debian via Windows Subsystem for Linux (WSL)
Subsystem: icu
This was tested in the REPL with PowerShell on Windows and Bash on WSL Debian. They both have the same problem.
IN
or
and
OUT
This is the same code used in the Intl.NumberFormat V8 docs.
This bug does not only arise when specifying notation as compact notation works without error.
The text was updated successfully, but these errors were encountered: