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

Use sub-32-bit int conversions in JS API #52

Merged
merged 1 commit into from
Jun 25, 2022
Merged

Conversation

lukewagner
Copy link
Member

As suggested in #48

Liamolucko added a commit to Liamolucko/wit-bindgen that referenced this pull request Jun 22, 2022
Updates JS integer lowering to match the component model explainer (assuming that WebAssembly/component-model#52 is merged).

The main differences are that out-of-range numbers now wrap instead of throwing, and that non-integers are now rounded down instead of throwing.
@lukewagner lukewagner merged commit c890d92 into main Jun 25, 2022
@lukewagner lukewagner deleted the improve-js-api branch June 25, 2022 04:18
alexcrichton pushed a commit to bytecodealliance/wit-bindgen that referenced this pull request Sep 1, 2022
* Update JS integer lowering

Updates JS integer lowering to match the component model explainer (assuming that WebAssembly/component-model#52 is merged).

The main differences are that out-of-range numbers now wrap instead of throwing, and that non-integers are now rounded down instead of throwing.
guybedford pushed a commit to bytecodealliance/jco that referenced this pull request Dec 17, 2022
* Update JS integer lowering

Updates JS integer lowering to match the component model explainer (assuming that WebAssembly/component-model#52 is merged).

The main differences are that out-of-range numbers now wrap instead of throwing, and that non-integers are now rounded down instead of throwing.
guybedford pushed a commit to bytecodealliance/jco that referenced this pull request Dec 17, 2022
* Update JS integer lowering

Updates JS integer lowering to match the component model explainer (assuming that WebAssembly/component-model#52 is merged).

The main differences are that out-of-range numbers now wrap instead of throwing, and that non-integers are now rounded down instead of throwing.
guybedford pushed a commit to bytecodealliance/jco that referenced this pull request Dec 21, 2022
* Update JS integer lowering

Updates JS integer lowering to match the component model explainer (assuming that WebAssembly/component-model#52 is merged).

The main differences are that out-of-range numbers now wrap instead of throwing, and that non-integers are now rounded down instead of throwing.
rvolosatovs pushed a commit to bytecodealliance/wrpc that referenced this pull request May 23, 2024
* Update JS integer lowering

Updates JS integer lowering to match the component model explainer (assuming that WebAssembly/component-model#52 is merged).

The main differences are that out-of-range numbers now wrap instead of throwing, and that non-integers are now rounded down instead of throwing.
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