这是indexloc提供的服务,不要输入任何密码
Skip to content

Remove default=0 for mapAsync size and allow size=0 in getMappedRange #951

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

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

kainino0x
Copy link
Contributor

@kainino0x kainino0x commented Jul 23, 2020

And fix algorithm when size is unspecified.

And fix some indentation and stray close tags.

Fixes #941
Fixes #948


Preview | Diff

@kainino0x
Copy link
Contributor Author

kainino0x commented Jul 24, 2020

Let's surface this in the meeting, but I expect to just announce it and click merge.


</dfn>
</div>
Issue: Do we validate that |mode| contains only valid flags?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should

@kainino0x kainino0x merged commit 4753ebf into gpuweb:main Jul 27, 2020
@kainino0x kainino0x deleted the mapasync-size branch July 27, 2020 19:11
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zero-sized mapAsync and getMappedRange mapAsync algorithm misbehaves if size=0 and offset>this.size
3 participants