mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 04:21:21 +00:00
Add ArrayBuffer.prototype.byteLength
to js-sys
This commit is contained in:
committed by
Alex Crichton
parent
0bdb31d41e
commit
aeca24c7ab
@ -9,6 +9,12 @@ fn new() {
|
||||
assert!(y.is_object());
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn byte_length() {
|
||||
let buf = ArrayBuffer::new(42);
|
||||
assert_eq!(buf.byte_length(), 42);
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn is_view() {
|
||||
let x = Uint8Array::new(&JsValue::from(42));
|
||||
|
Reference in New Issue
Block a user