Skip to content

Commit

Permalink
Editorial: fix PermissionDescriptor name check in query() (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Dec 9, 2022
1 parent 87ac8bf commit 2bd53ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,14 @@ <h4 id="query-method">
</li>
</ol>
</li>
<li>If |permissionDesc|'s {{PermissionDescriptor/name}} member is not supported, return
[=a promise rejected with=] a {{TypeError}}.
<li>Let |rootDesc| be the object |permissionDesc| refers to, <a>converted to an IDL
value</a> of type {{PermissionDescriptor}}.
</li>
<li>If the conversion [=exception/throws=] an [=exception=], return <a>a promise
rejected with</a> that exception.
</li>
<li>If |rootDesc|["{{PermissionDescriptor/name}}"] is not supported, return [=a
promise rejected with=] a {{TypeError}}.
<aside class="note" title="Why is this not an enum?">
<p>
This is deliberately designed to work the same as WebIDL's [=enumeration=]
Expand All @@ -818,12 +824,6 @@ <h4 id="query-method">
</p>
</aside>
</li>
<li>Let |rootDesc| be the object |permissionDesc| refers to, <a>converted to an IDL
value</a> of type {{PermissionDescriptor}}.
</li>
<li>If the conversion [=exception/throws=] an [=exception=], return <a>a promise
rejected with</a> that exception.
</li>
<li>Let |typedDescriptor| be the object |permissionDesc| refers to, <a>converted to an
IDL value</a> of |rootDesc|'s {{PermissionDescriptor/name}}'s [=powerful
feature/permission descriptor type=].
Expand Down

0 comments on commit 2bd53ac

Please sign in to comment.