Skip to content

Commit f4012d7

Browse files
FrankYFTangryzokuken
authored andcommitted
Normative: set compatDisplay only if notation is "compact"
Address #1031 This is necessary because 1. compatDisplay does not make sense if notation is not compact 2. costly to implement resolvedOptions() w/o in v8 since currently v8 depends on icu's skeleton to get the compactDisplay and there are no defined value for the case while notation is not compact
1 parent 7dc4a6d commit f4012d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/pluralrules.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ <h1>Intl.PluralRules ( [ _locales_ [ , _options_ ] ] )</h1>
2929
1. Let _notation_ be ? GetOption(_options_, *"notation"*, ~string~, « *"standard"*, *"scientific"*, *"engineering"*, *"compact"* », *"standard"*).
3030
1. Set _pluralRules_.[[Notation]] to _notation_.
3131
1. Let _compactDisplay_ be ? GetOption(_options_, *"compactDisplay"*, ~string~, « *"short"*, *"long"* », *"short"*).
32-
1. Set _pluralRules_.[[CompactDisplay]] to _compactDisplay_.
32+
1. If _notation_ is *"compact"*, then
33+
1. Set _pluralRules_.[[CompactDisplay]] to _compactDisplay_.
3334
1. Perform ? SetNumberFormatDigitOptions(_pluralRules_, _options_, 0, 3, _notation_).
3435
1. Return _pluralRules_.
3536
</emu-alg>

0 commit comments

Comments
 (0)