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
QuotaExceededError is graduating from being a DOMException name into a new error class, in whatwg/webidl#1465. Update creation sites to reflect this.
For now, the quota and requested properties are left at their default (null). Future work could include setting them in an informative fashion.
Copy file name to clipboardExpand all lines: spec.bs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -328,12 +328,12 @@ This method creates a {{HandwritingRecognizer}} object that satisfies the provid
328
328
1. Run the following steps [=in parallel=]:
329
329
1. <a lt="convert">Convert |constraint| into a suitable form</a> for creating a platform-dependent [=handwriting recognizer=].
330
330
1. [=Queue a Handwriting Recognition API task=] to:
331
-
1. If the user agent can't create or prepare a [=handwriting recognizer=] to perform recognitions, [=/reject=] |p| with a new {{DOMException}} according to the failure cause:
332
-
* If |constraint|'s {{HandwritingModelConstraint/languages}} is an empty [=list=], {{"NotSupportedError"}}.
333
-
* If the user agent can't find a platform-dependent [=handwriting recognizer=] that satisfies the converted |constraint|, {{"NotSupportedError"}}.
334
-
* If creating a [=handwriting recognizer=] would cause the user agent to exceed its limit for total number of active recognizer, {{"QuotaExceededError"}}.
335
-
* If the web application can retry calling this method, {{OperationError}}.
336
-
* For all other failure causes, {{"UnknownError"}}
331
+
1. If the user agent can't create or prepare a [=handwriting recognizer=] to perform recognitions, [=/reject=] |p| with a new exception according to the failure cause:
332
+
* If |constraint|'s {{HandwritingModelConstraint/languages}} is an empty [=list=], {{"NotSupportedError"}}{{DOMException}}.
333
+
* If the user agent can't find a platform-dependent [=handwriting recognizer=] that satisfies the converted |constraint|, {{"NotSupportedError"}}{{DOMException}}.
334
+
* If creating a [=handwriting recognizer=] would cause the user agent to exceed its limit for total number of active recognizer, {{QuotaExceededError}}.
335
+
* If the web application can retry calling this method, {{"OperationError"}}{{DOMException}}.
336
+
* For all other failure causes, {{"UnknownError"}}{{DOMException}}.
337
337
1. Otherwise:
338
338
1. Let |result| be a new {{HandwritingRecognizer}} object.
339
339
1. Associate |result| with the platform-dependent [=handwriting recognizer=] created in the previous step.
@@ -658,7 +658,7 @@ If the handwriting recognizer wasn't able to recognize anything, {{HandwritingDr
0 commit comments