mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 06:33:33 +03:00
93a510ef93
This information is embedded within the algorithm for constructing interfaces and their prototypes in the section for ECMAScript glue in the WebIDL spec... This really *should* make the `wasm_bindgen_backend::ast::ImportType::extends` member from a `Vec<Ident>` into a `Vec<syn::Path>` so that we could use `js_sys::Object` in the extends field, but that is a huge pain because then the `ImportedTypes` trait needs to be changed, and all of its implementers, etc...
13 lines
293 B
Rust
13 lines
293 B
Rust
use js_sys::Object;
|
|
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));
|
|
}
|