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

Zero-sized mapAsync and getMappedRange #948

@kainino0x

Description

@kainino0x

Should a mapping size of 0 be allowed in mapAsync? Should a range size of 0 be allowed in getMappedRange?
In the latter case, it would mean returning an ArrayBuffer of size zero - but that's probably fine.

I sort of snuck in validation that getMappedRange size shouldn't be zero in a revision of #908. We should make sure to agree on it.

cc @kvark @Kangz

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions