WebAssembly::Table::new takes an object

This commit is contained in:
Frazer McLean 2018-08-16 20:41:07 +02:00
parent b519c290f9
commit ffccfdee7d

View File

@ -2990,7 +2990,7 @@ pub mod WebAssembly {
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table
#[wasm_bindgen(constructor, js_namespace = WebAssembly)]
pub fn new(table_descriptor: &JsValue) -> Table;
pub fn new(table_descriptor: &Object) -> Table;
/// The `length` prototype property of the `WebAssembly.Table` object
/// returns the length of the table, i.e. the number of elements in the