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

Handle i64 arguments/results in host function #21

Closed
xtuc opened this issue Dec 25, 2017 · 0 comments
Closed

Handle i64 arguments/results in host function #21

xtuc opened this issue Dec 25, 2017 · 0 comments

Comments

@xtuc
Copy link
Owner

xtuc commented Dec 25, 2017

According to the spec:

If the signature contains an i64 (as argument or result), the host function immediately throws a TypeError when called.

The reason is that you can't represent > 53 bits integers in JS where WebAssembly allows up to 64 bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant