Skip to content

Commit c23e1f4

Browse files
authored
Merge pull request #68 from WebAssembly/tweak-list-js-api-rules
Say lists of numbers produce typed arrays in the JS API
2 parents 7674850 + c6065fd commit c23e1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

design/mvp/Explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ At a high level, the additional coercions would be:
955955
| `char` | same as [`USVString`] | same as [`USVString`], throw if the USV length is not 1 |
956956
| `record` | TBD: maybe a [JS Record]? | same as [`dictionary`] |
957957
| `variant` | TBD | TBD |
958-
| `list` | same as [`sequence`] | same as [`sequence`] |
958+
| `list` | create a typed array copy for number types; otherwise produce a JS array (like [`sequence`]) | same as [`sequence`] |
959959
| `string` | same as [`USVString`] | same as [`USVString`] |
960960
| `tuple` | TBD: maybe a [JS Tuple]? | TBD |
961961
| `flags` | TBD: maybe a [JS Record]? | same as [`dictionary`] of optional `boolean` fields with default values of `false` |

0 commit comments

Comments
 (0)