Skip to content

Commit ec625ed

Browse files
JeffHJeffH
JeffH
authored and
JeffH
committed
alloc ArrayBuffers in correct global, fixes #293, thx bzbarsky
1 parent 985f88e commit ec625ed

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

index.bs

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Markup Shorthands: css off, markdown on
4343
spec: ECMAScript; urlPrefix: https://tc39.github.io/ecma262/#
4444
type: method
4545
for: JSON; text: stringify; url: sec-json.stringify
46+
type: dfn
47+
text: %ArrayBuffer%; url: sec-arraybuffer-constructor
4648

4749
<!-- spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/ -->
4850
spec: HTML52; urlPrefix: https://w3c.github.io/html/
@@ -184,6 +186,9 @@ below and in [[#index-defined-elsewhere]].
184186
: DOM
185187
:: {{DOMException}} and the DOMException values used in this specification are defined in [[!DOM4]].
186188

189+
: ECMAScript
190+
:: [=%ArrayBuffer%=] is defined in [[!ECMAScript]].
191+
187192
: HTML
188193
:: The concepts of [=relevant settings object=], [=origin=],
189194
[=opaque origin=], [=is a registrable domain suffix of or is equal to=], and the {{Navigator}} interface are
@@ -531,12 +536,12 @@ When this method is invoked, the user agent MUST execute the following algorithm
531536
<dt>If any |authenticator| indicates success,</dt>
532537
<dd>
533538
1. [=set/Remove=] |authenticator| from |issuedRequests|.
534-
2. Using |global|, let |value| be a new {{ScopedCredentialInfo}} object whose fields are:
539+
2. Let |value| be a new {{ScopedCredentialInfo}} object associated with |global| whose fields are:
535540
: {{ScopedCredentialInfo/clientDataJSON}}
536-
:: A new {{ArrayBuffer}} containing the bytes of |clientDataJSON|.
541+
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of |clientDataJSON|.
537542
: {{ScopedCredentialInfo/attestationObject}}
538-
:: A new {{ArrayBuffer}} containing the bytes of the value returned from the successful
539-
[=authenticatorMakeCredential=] operation
543+
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of the value returned
544+
from the successful [=authenticatorMakeCredential=] operation
540545
3. [=set/For each=] remaining |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on
541546
|authenticator| and [=set/remove=] it from |issuedRequests|.
542547
4. [=Resolve=] |promise| with |value| and terminate this algorithm.
@@ -670,19 +675,22 @@ When this method is invoked, the user agent MUST execute the following algorithm
670675
<dt>If any |authenticator| indicates success,</dt>
671676
<dd>
672677
1. [=set/Remove=] |authenticator| from |issuedRequests|.
673-
2. Using |global|, let |value| be a new {{AuthenticationAssertion}} object whose fields are:
678+
2. Let |value| be a new {{AuthenticationAssertion}} object associated with |global| whose fields are:
674679
: {{AuthenticationAssertion/credential}}
675-
:: A new {{ScopedCredential}} object whose fields are:
680+
:: A new {{ScopedCredential}} object associated with |global| whose fields are:
676681
1. {{ScopedCredential/type}} whose value is the {{ScopedCredentialType}} representing this [=scoped
677682
credential=]'s type.
678-
1. {{ScopedCredential/id}} whose value is a new {{ArrayBuffer}} containing the bytes of the credential ID
679-
returned from the successful [=authenticatorGetAssertion=] operation.
683+
1. {{ScopedCredential/id}} whose value is a new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=],
684+
containing the bytes of the credential ID returned from the successful [=authenticatorGetAssertion=]
685+
operation.
680686
: {{AuthenticationAssertion/clientDataJSON}}
681-
:: A new {{ArrayBuffer}} containing the bytes of |clientDataJSON|
687+
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of |clientDataJSON|
682688
: {{AuthenticationAssertion/authenticatorData}}
683-
:: A new {{ArrayBuffer}} containing the bytes of the returned {{authenticatorData}}
689+
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of the returned
690+
{{authenticatorData}}
684691
: {{AuthenticationAssertion/signature}}
685-
:: A new {{ArrayBuffer}} containing the bytes of the returned {{signature}}
692+
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of the returned
693+
{{signature}}
686694
3. [=set/For each=] remaining |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on
687695
|authenticator| and [=set/remove=] it from |issuedRequests|.
688696
4. [=Resolve=] |promise| with |value| and terminate this algorithm.

0 commit comments

Comments
 (0)