Skip to content

Commit c890d92

Browse files
authored
Merge pull request #52 from WebAssembly/improve-js-api
Use sub-32-bit int conversions in JS API
2 parents ba38193 + 3361a13 commit c890d92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

design/mvp/Explainer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,8 @@ At a high level, the additional coercions would be:
947947
| ---- | ----------- | -------------------- |
948948
| `unit` | `null` | accept everything |
949949
| `bool` | `true` or `false` | `ToBoolean` |
950-
| `s8`, `s16`, `s32` | as a Number value | `ToInt32` |
951-
| `u8`, `u16`, `u32` | as a Number value | `ToUint32` |
950+
| `s8`, `s16`, `s32` | as a Number value | `ToInt8`, `ToInt16`, `ToInt32` |
951+
| `u8`, `u16`, `u32` | as a Number value | `ToUint8`, `ToUint16`, `ToUint32` |
952952
| `s64` | as a BigInt value | `ToBigInt64` |
953953
| `u64` | as a BigInt value | `ToBigUint64` |
954954
| `float32`, `float64` | as a Number, mapping the canonical NaN to [JS NaN] | `ToNumber` mapping [JS NaN] to the canonical NaN |

0 commit comments

Comments
 (0)