From e58e231fdf8de5923836500753c59878205f658f Mon Sep 17 00:00:00 2001 From: Sendil Kumar Date: Tue, 14 Aug 2018 19:32:14 +0200 Subject: [PATCH] js-sys: Add extends attributes for js_sys::UInt16Array --- crates/js-sys/src/lib.rs | 1 + crates/js-sys/tests/wasm/TypedArray.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 93b0923a..427c3c17 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -2647,6 +2647,7 @@ extern "C" { // Uint16Array #[wasm_bindgen] extern "C" { + #[wasm_bindgen(extends = Object)] #[derive(Clone, Debug)] pub type Uint16Array; diff --git a/crates/js-sys/tests/wasm/TypedArray.rs b/crates/js-sys/tests/wasm/TypedArray.rs index 458feca8..7dbfe61c 100644 --- a/crates/js-sys/tests/wasm/TypedArray.rs +++ b/crates/js-sys/tests/wasm/TypedArray.rs @@ -7,6 +7,7 @@ macro_rules! each { ($m:ident) => ( $m!(Uint8Array); $m!(Uint8ClampedArray); + $m!(Uint16Array); ) }