Skip to content
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

JavaScript integration #33

Open
bakkot opened this issue Dec 18, 2024 · 2 comments
Open

JavaScript integration #33

bakkot opened this issue Dec 18, 2024 · 2 comments

Comments

@bakkot
Copy link

bakkot commented Dec 18, 2024

I didn't see anything about integration with the JS interface, apologies if I've missed this.

Specifically, the WebAssembly.Memory constructor takes a number of pages and does not (currently) have anything which specifies page size. Probably it should just take an additional option in the options bag to specify the page size? Also it might be good to expose the page size on the Memory objects as well, since .grow also works in units of page size and you really want to know if you're growing by N bytes or N*64k bytes.

@fitzgen
Copy link
Collaborator

fitzgen commented Jan 22, 2025

Agreed that exposing page size in the JS API is a good idea. I don't have strong opinions on the exact APIs.

I'd be interested in the opinions of Web engine representatives here. cc @eqrion @jakobkummerow

@jakobkummerow
Copy link
Contributor

No opinion. I don't expect Web deployments to use custom page sizes anyway.

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

No branches or pull requests

3 participants