You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/reference-types/Overview.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,12 +135,15 @@ Table extensions:
135
135
- For backwards compatibility, the index may be omitted in the text format, in which case it defaults to 0.
136
136
137
137
138
-
API extensions:
138
+
JS API extensions:
139
139
140
140
* Any JS value can be passed as `externref` to a Wasm function, stored in a global, or in a table.
141
141
142
142
* Any Wasm exported function object or `null` can be passed as `funcref` to a Wasm function, stored in a global, or in a table.
143
143
144
+
* The `WebAssembly.Table#grow` method takes an additional initialisation argument.
145
+
- optional for backwards compatibility, defaults to default value of respective type
146
+
144
147
145
148
## Possible Future Extensions
146
149
@@ -212,11 +215,6 @@ Additions:
212
215
213
216
* Typed function references cannot be null!
214
217
215
-
* The `table.grow` instruction (see the [bulk operation proposal](https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md)) needs to take an initialisation argument.
216
-
217
-
* Likewise `WebAssembly.Table#grow` takes an additional initialisation argument.
218
-
- optional for backwards compatibility, defaults to `null`
0 commit comments