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 js-api tests #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

backes
Copy link
Member

@backes backes commented Oct 4, 2024

This fixes four things in the JS-API tests:

  1. Pass BigInt for i64 WebAssembly.Table and WebAssembly.Memory constructors.
  2. Use reference types for tables (would throw a TypeError otherwise).
  3. Overwrite 'toString' instead of 'valueOf' for the 'index' property which is a string.
  4. 'index' is read after 'element' and before 'initial' in Table construction.

This fixes four things in the JS-API tests:
1. Pass BigInt for i64 WebAssembly.Table and WebAssembly.Memory
   constructors.
2. Use reference types for tables (would throw a TypeError
   otherwise).
3. Overwrite 'toString' instead of 'valueOf' for the 'index' property
   which is a string.
4. 'index' is read after 'element' and before 'initial' in Table
   construction.
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.

1 participant