Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Editorial: Remove unreachable error case
Browse files Browse the repository at this point in the history
Closes #56
  • Loading branch information
littledan committed Aug 8, 2018
1 parent b8a3643 commit 3cd90c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h1>ApplyUnicodeExtensionToTag( _tag_, _options_, _relevantExtensionKeys_ )</h1>
1. Let _locale_ be the String value that is _tag_ with all Unicode locale extension sequences removed.
1. Let _newExtension_ be ! CanonicalizeUnicodeExtension(_attributes_, _keywords_).
1. If _newExtension_ is not the empty String, then
1. Let _locale_ be ? InsertUnicodeExtension(_locale_, _newExtension_).
1. Let _locale_ be InsertUnicodeExtension(_locale_, _newExtension_).
1. Set _result_.[[locale]] to _locale_.
1. Return _result_.
</emu-alg>
Expand Down Expand Up @@ -188,7 +188,7 @@ <h1>InsertUnicodeExtension( _locale_, _extension_ )</h1>
<emu-alg>
1. Assert: _locale_ does not contain a substring that is a Unicode locale extension sequence.
1. Assert: _extension_ is a Unicode extension sequence.
1. If _locale_ matches the `privateuse` or the `grandfathered` production, throw a *RangeError* exception.
1. Assert: _locale_ matches the `langtag` production.
1. Let _privateIndex_ be ! Call(%StringProto_indexOf%, _locale_, &laquo; `"-x-"` &raquo;).
1. If _privateIndex_ = -1, then
1. Let _locale_ be the concatenation of _locale_ and _extension_.
Expand Down

0 comments on commit 3cd90c9

Please sign in to comment.