You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To <dfn>validate and canonicalize summarizer options</dfn> given a {{SummarizerCreateCoreOptions}} |options|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags, and throw a {{TypeError}} if any are invalid.
125
+
To <dfn>validate and canonicalize summarizer options</dfn> given a {{SummarizerCreateCoreOptions}} |options|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags, and throw an exception if any are invalid.
126
126
127
127
1. [=Validate and canonicalize language tags=] given |options| and "{{SummarizerCreateCoreOptions/expectedInputLanguages}}".
To <dfn>validate and canonicalize writer options</dfn> given a {{WriterCreateCoreOptions}} |options|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags, and throw a {{TypeError}} if any are invalid.
703
+
To <dfn>validate and canonicalize writer options</dfn> given a {{WriterCreateCoreOptions}} |options|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags, and throw an exception if any are invalid.
704
704
705
705
1. [=Validate and canonicalize language tags=] given |options| and "{{WriterCreateCoreOptions/expectedInputLanguages}}".
To <dfn>validate and canonicalize rewriter options</dfn> given a {{RewriterCreateCoreOptions}} |options|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags, and throw a {{TypeError}} if any are invalid.
1212
+
To <dfn>validate and canonicalize rewriter options</dfn> given a {{RewriterCreateCoreOptions}} |options|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags, and throw an exception if any are invalid.
1213
1213
1214
1214
1. [=Validate and canonicalize language tags=] given |options| and "{{RewriterCreateCoreOptions/expectedInputLanguages}}".
1215
1215
@@ -2200,7 +2200,7 @@ Every [=interface=] [=interface/including=] the {{DestroyableModel}} interface m
To <dfn export>validate and canonicalize language tags</dfn> given a [=ordered map=] |options| and a [=string=] |key|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags found in |options|[|key|], and throw a {{TypeError}} if any are invalid.
2203
+
To <dfn export>validate and canonicalize language tags</dfn> given a [=ordered map=] |options| and a [=string=] |key|, perform the following steps. They mutate |options| in place to canonicalize and deduplicate language tags found in |options|[|key|], and throw an exception if any are invalid.
2204
2204
2205
2205
1. [=Assert=]: |options|[|key|][=map/exists=].
2206
2206
@@ -2222,7 +2222,7 @@ Every [=interface=] [=interface/including=] the {{DestroyableModel}} interface m
2222
2222
<div algorithm>
2223
2223
To <dfn lt="validate and canonicalize a single language tag|validating and canonicalizing a single language tag">validate and canonicalize a single language tag</dfn> given a [=string=] |potentialLanguageTag|:
2224
2224
2225
-
1. If [$IsStructurallyValidLanguageTag$](|potentialLanguageTag|) is false, then throw a {{TypeError}}.
2225
+
1. If [$IsStructurallyValidLanguageTag$](|potentialLanguageTag|) is false, then throw a {{RangeError}}.
0 commit comments