mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 21:11:22 +00:00
@ -1,5 +1,6 @@
|
||||
use wasm_bindgen::JsValue;
|
||||
use wasm_bindgen_test::*;
|
||||
use wasm_bindgen::JsCast;
|
||||
use js_sys::*;
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
@ -34,3 +35,10 @@ fn slice_with_end() {
|
||||
let slice = buf.slice_with_end(1, 2);
|
||||
assert!(JsValue::from(slice).is_object());
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn arraybuffer_inheritance() {
|
||||
let buf = ArrayBuffer::new(4);
|
||||
assert!(buf.is_instance_of::<ArrayBuffer>());
|
||||
assert!(buf.is_instance_of::<Object>());
|
||||
}
|
||||
|
Reference in New Issue
Block a user