Skip to content

Commit

Permalink
Normative: Canonicalize overriding uvalues in MakeLocaleRecord (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
trflynn89 authored Jun 3, 2024
1 parent ca5dff3 commit 661a610
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ <h1>
1. Let _entry_ be ~empty~.
1. Let _value_ be *undefined*.
1. Assert: _options_ has a field [[&lt;_key_&gt;]].
1. Let _optionsValue_ be _options_.[[&lt;_key_&gt;]].
1. If _optionsValue_ is not *undefined*, then
1. Assert: _optionsValue_ is a String.
1. Set _value_ to _optionsValue_.
1. Let _overrideValue_ be _options_.[[&lt;_key_&gt;]].
1. If _overrideValue_ is not *undefined*, then
1. Assert: _overrideValue_ is a String.
1. Set _overrideValue_ to the ASCII-lowercase of _overrideValue_.
1. Set _value_ to the String value resulting from canonicalizing _overrideValue_ as a value of key _key_ per <a href="https://unicode.org/reports/tr35/#processing-localeids">Unicode Technical Standard #35 Part 1 Core, Annex C LocaleId Canonicalization Section 5 Canonicalizing Syntax, Processing LocaleIds</a>.
1. If _entry_ is not ~empty~, then
1. Set _entry_.[[Value]] to _value_.
1. Else,
Expand Down

0 comments on commit 661a610

Please sign in to comment.