Re: [heycam/webidl] Consider renaming number types to match the equivalent WebAssembly types (#843)

Correction: **WebAssembly** uses `s*` for signed integers, `i*` is for uninterpreted integers.

Apart from that, they have mostly identical semantics, especially because the **WebAssembly** binding for **ECMAScript** is defined in **WebIDL**.

`i32` in **WebAssembly** uses [`ToInt32`](https://tc39.es/ecma262/#sec-toint32), whereas **WebIDL** uses [`ConvertToInt`](https://heycam.github.io/webidl/#abstract-opdef-converttoint), which behave in an identical manner.

The only difference is that **WebAssembly** doesn’t currently allow passing `i64` values between **ECMAScript** and **WASM** code, because they intend to use `bigint`s for that (https://github.com/WebAssembly/spec/pull/707).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/843#issuecomment-586082178

Received on Friday, 14 February 2020 03:35:20 UTC