-
Notifications
You must be signed in to change notification settings - Fork 172
get-buffer-source-{reference,copy} ought to point to the algorithm #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is just an artifact of Web IDL's wonky splint into language-independent concepts ("get a copy of the bytes held by the buffer source") and ECMAScript bindings (the algorithm you found). It's correct for specs to link to the language-independent concepts. One day we will squish them together, but for now this just parallels the rest of the spec. E.g. the definition of the language independent "double" type doesn't forward-link to the specific way that you might get a double given an ECMAScript environment. |
Thanks for the explanation, though this asymmetry arguably steepens the WebIDL learning curve -- at least it does so for me. |
Yep, it's a medium-term goal to squash together the language-independent and JS-language-binding sections into one; it's unnecessary abstraction at this point. (Back in the deep past there were Java bindings...) |
Wonder if WebAssembly won't come and ruin that nifty plan, though. |
|
This was fixed by #987. |
WebCryptoAPI uses this link -- https://heycam.github.io/webidl/#dfn-get-buffer-source-copy -- (and WebAuthn has been advised to do so also), which points into this WebIDL paragraph:
https://github.com/heycam/webidl/blob/83448a73bec7f84b930fd3b8ef0a8365d5457695/index.bs#L6021-L6027
..although said paragraph actually does not say how one might go about getting said copy (or reference). Subsequent poking through WebIDL yields this algorithm..
https://github.com/heycam/webidl/blob/83448a73bec7f84b930fd3b8ef0a8365d5457695/index.bs#L7945
..which does point back to the former paragraph. It seems to me the paragraph ought to also link to the algorithm.
The text was updated successfully, but these errors were encountered: