Skip to content

Commit 8dae44b

Browse files
committed
Bug 1930464: Only use currency minor digits for standard notation. r=spidermonkey-reviewers,dminor
Implement the changes from <tc39/ecma402#925>. Test coverage: <tc39/test262#4274> Differential Revision: https://phabricator.services.mozilla.com/D228589
1 parent ea6396c commit 8dae44b

File tree

2 files changed

+65
-68
lines changed

2 files changed

+65
-68
lines changed

js/src/builtin/intl/NumberFormat.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const ClassSpec NumberFormatObject::classSpec_ = {
125125
/**
126126
* 15.1.1 Intl.NumberFormat ( [ locales [ , options ] ] )
127127
*
128-
* ES2024 Intl draft rev 74ca7099f103d143431b2ea422ae640c6f43e3e6
128+
* ES2025 Intl draft rev 5ea95f8a98d660e94c177d6f5e88c6d2962123b1
129129
*/
130130
static bool NumberFormat(JSContext* cx, const CallArgs& args, bool construct) {
131131
AutoJSConstructorProfilerEntry pseudoFrame(cx, "Intl.NumberFormat");
@@ -150,7 +150,7 @@ static bool NumberFormat(JSContext* cx, const CallArgs& args, bool construct) {
150150
HandleValue locales = args.get(0);
151151
HandleValue options = args.get(1);
152152

153-
// Step 3.
153+
// Steps 3-33.
154154
return intl::InitializeNumberFormatObject(cx, numberFormat, thisValue,
155155
locales, options, args.rval());
156156
}

0 commit comments

Comments
 (0)