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

Fix small issues in the JS API #78

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

bvisness
Copy link
Collaborator

This PR fixes a few lingering issues in the JS API left over from #75:

  • IndexValue incorrectly used unsigned long long instead of unsigned long. The current JS API uses [EnforceRange] unsigned long, and the [EnforceRange] behavior must be preserved.
  • The return type of Memory.grow should have also been updated to IndexValue.
  • For symmetry with [EnforceRange], IndexValueToU64 should have thrown TypeError for out-of-range BigInt values instead of RangeError.

@sbc100 sbc100 merged commit c61da44 into WebAssembly:main Sep 23, 2024
7 checks passed
@bvisness bvisness deleted the js-api-cleanup branch October 17, 2024 07:19
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.

2 participants