forked from mirrors/gecko-dev
The following operations on WebAssembly.Table can take an optional parameter. * new WebAssembly.Table(descr, <initvalue>) * table.set(index, <newvalue>) * table.grow(delta, <initvalue>) Current support is inconsistent. The constructor didn't support the parameter at all, the setter always required the parameter, and grow supported the parameter as optional. One additional wrinkle is that the behavior for an omitted parameter depends on the table type. funcref (and presumably eqref, but unspecified) defaults to null when the value is not specified. externref is to default to undefined. [1] This behavior is odd, but appears to be required to be backwards compatible with respect to funcref, and to be consistent with JS semantics of optional parameters meaning 'undefined' for externref. [1] https://webassembly.github.io/reference-types/js-api/index.html#dom-table-table Differential Revision: https://phabricator.services.mozilla.com/D101946 |
||
|---|---|---|
| .. | ||
| jsapi | ||
| resources | ||
| serialization | ||
| webapi | ||
| compile_worker.js | ||
| create_multiple_memory.worker.js | ||
| incrementer.wasm | ||
| META.yml | ||