Add WebIDL support for the ArrayBuffer type

Should help enable a slew of new bindings as well.
This commit is contained in:
Alex Crichton
2018-08-04 13:51:22 -07:00
parent 57fd1dedd6
commit a98b5ea2a0
10 changed files with 48 additions and 6 deletions

View File

@ -0,0 +1,11 @@
use wasm_bindgen_test::*;
include!(concat!(env!("OUT_DIR"), "/array_buffer.rs"));
#[wasm_bindgen_test]
fn take_and_return_a_bunch_of_slices() {
let f = ArrayBufferTest::new().unwrap();
let x = f.get_buffer();
f.set_buffer(None);
f.set_buffer(Some(x));
}