w3c / webcrypto

The W3C Web Cryptography API
https://w3c.github.io/webcrypto/
Other
267 stars 56 forks source link

Refer to relevant realm instead of relevant global object #347

Closed twiss closed 1 year ago

twiss commented 1 year ago

For created objects, this's relevant realm is of interest, rather than its relevant global object.

Also, link out to WebIDL's this definition instead of referencing it explicitly.

Also, note that objects are created in the relevant realm of this by default, rather than mentioning it everywhere.

And finally, refer to the "create an ArrayBuffer" algorithm of WebIDL, rather than constructing ArrayBuffer objects ourselves.

Resolves #346.


Preview | Diff

twiss commented 1 year ago

"this" is defined in Web IDL.

Er, right. I got misled by all of the instances of "this [[HTML]]" in the text, even after removing all of them :) But I've updated the commit message, thanks for catching that!