Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

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
@bvisness bvisness deleted the js-api-cleanup branch October 17, 2024 07:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants