WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
215985
[JSC] Use UNumberFormatter unconditionally
https://bugs.webkit.org/show_bug.cgi?id=215985
Summary
[JSC] Use UNumberFormatter unconditionally
Yusuke Suzuki
Reported
2020-08-30 01:05:49 PDT
[JSC] Use UNumberFormatter unconditionally
Attachments
Patch
(27.71 KB, patch)
2020-08-30 01:07 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(27.71 KB, patch)
2020-08-30 01:10 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2020-08-30 01:07:59 PDT
Created
attachment 407564
[details]
Patch
Yusuke Suzuki
Comment 2
2020-08-30 01:10:14 PDT
Created
attachment 407565
[details]
Patch
Yusuke Suzuki
Comment 3
2020-08-30 01:14:00 PDT
Comment on
attachment 407565
[details]
Patch Hm, maybe, we should check `OS(DARWIN)`.
Ross Kirsling
Comment 4
2020-08-30 01:41:17 PDT
Comment on
attachment 407565
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407565&action=review
> Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:43 > +// They later become stable APIs. > +#if U_ICU_VERSION_MAJOR_NUM < 64 > +static constexpr UNumberFormatFields UNUM_MEASURE_UNIT_FIELD = static_cast<UNumberFormatFields>(11); > +static constexpr UNumberFormatFields UNUM_COMPACT_FIELD = static_cast<UNumberFormatFields>(12);
The comment here seems a bit misleading -- these symbols don't even exist as draft API before that point, right?
> Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:46 > +static_assert(static_cast<int32_t>(UNUM_COMPACT_FIELD ) == 12);
Whoops, style checker is rightly complaining about the extra space here.
> Source/JavaScriptCore/runtime/IntlNumberFormat.h:37 > +#define U_HIDE_DRAFT_API
Hmm, seems a bit odd that we #ifdef U_HIDE_DRAFT_API and then re-#define it unconditionally.
> JSTests/test262/expectations.yaml:1638 > +test/intl402/NumberFormat/prototype/format/engineering-scientific-de-DE.js:
So are these all now failing for different reasons that we can address separately then?
Radar WebKit Bug Importer
Comment 5
2020-09-06 01:06:12 PDT
<
rdar://problem/68417474
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug