From 3cd90c91aad048e0734b288247c2c14d8fcaae4b Mon Sep 17 00:00:00 2001 From: Daniel Ehrenberg Date: Wed, 8 Aug 2018 23:44:02 +0200 Subject: [PATCH] Editorial: Remove unreachable error case Closes #56 --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 2e8f5e2..0c94be6 100644 --- a/spec.html +++ b/spec.html @@ -105,7 +105,7 @@

ApplyUnicodeExtensionToTag( _tag_, _options_, _relevantExtensionKeys_ )

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_. @@ -188,7 +188,7 @@

InsertUnicodeExtension( _locale_, _extension_ )

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_, « `"-x-"` »). 1. If _privateIndex_ = -1, then 1. Let _locale_ be the concatenation of _locale_ and _extension_.