WebAssembly / WebAssembly/custom-page-sizes

JavaScript integration

Open
#33 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
13
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reviewing the proposal's JavaScript integration and the WebAssembly.Memory constructor and grow behavior. Determine how a page-size option and an exposed page-size value should fit the existing API, then document the expected semantics and validation before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.