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 memory64 tests #3702

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Fix memory64 tests #3702

merged 1 commit into from
Dec 10, 2024

Conversation

backes
Copy link
Contributor

@backes backes commented Nov 29, 2024

  1. Use 'address' instead of 'index'; this was a last-minute change, see
    Rename "index type" to "address type" across the spec WebAssembly/memory64#90 and
    Rename "addressType" to "address" in the JS API WebAssembly/memory64#92.
  2. Only treat RangeError as passing test.

Note that the tests were passing before because engines threw a TypeError if the memory descriptor used bigints without specifying {address: 'i64'}.

1) Use 'address' instead of 'index'; this was a last-minute change, see
   WebAssembly/memory64#90 and
   WebAssembly/memory64#92.
2) Only treat RangeError as passing test.

Note that the tests were passing before because engines threw a
TypeError if the memory descriptor used bigints without specifying
{address: 'i64'}.
@backes
Copy link
Contributor Author

backes commented Nov 29, 2024

@kenrussell PTAL
Note the previous #3696 which changed to using Bigints, and #3665 which allowed memory allocation to throw.

@lexaknyazev lexaknyazev requested a review from kdashg December 9, 2024 08:50
@kdashg kdashg merged commit 2010c61 into KhronosGroup:main Dec 10, 2024
2 checks passed
@backes backes deleted the fix-memory64-tests branch December 11, 2024 11:13
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