js-sys: Expose bindings to WebAssembly.Table.prototype.set

Part of #275
This commit is contained in:
Nick Fitzgerald
2018-09-06 15:02:01 -07:00
parent 8dbb0fc5f2
commit bfff31fcb9
2 changed files with 10 additions and 0 deletions

View File

@ -133,6 +133,9 @@ fn table() {
table.grow(1).unwrap();
assert_eq!(table.length(), 2);
let f = table.get(0).unwrap();
table.set(1, &f).unwrap();
}
#[wasm_bindgen_test]