Skip to content

Fix memory64 tests#3702

Merged
kdashg merged 1 commit intoKhronosGroup:mainfrom
backes:fix-memory64-tests
Dec 10, 2024
Merged

Fix memory64 tests#3702
kdashg merged 1 commit intoKhronosGroup:mainfrom
backes:fix-memory64-tests

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
@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