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
forAuthorCode can be a bit per reader #964
Comments
This is a brilliant insight, thank you. If you're willing to create a patch, that would be great. You may need to sign the whatwg CLA (https://participate.whatwg.org/agreement) if you have not done so already. |
In this case @jorendorff would just join https://github.com/mozilla-standards; I think @annevk or @dbaron can add you. |
Done. |
Thanks for taking a look! I'll put together a patch next week. (This is Thanksgiving week in the US, so I doubt I'll find time for it.) |
I'd note that, as described, @jorendorff needs to make his membership in the organization public. |
This editorial change doesn't affect any observable behavior. Closes whatwg#964.
This editorial change doesn't affect any observable behavior. Closes #964.
Eight different algorithms take a forAuthorCode argument, and it is passed to a lot of places. But if I understand the spec correctly, forAuthorCode is meant to be true iff the stream's current [[reader]] is visible to author code.
So it seems possible to give each reader a [[forAuthorCode]] field instead, and set it to false in AcquireReadableStreamDefaultReader.
This seems more direct, and might even be a nice simplification; if you agree, I'd like to contribute a patch.
The text was updated successfully, but these errors were encountered: