From 2d737c5634b7d7e058f57344002fea0ea72e1f49 Mon Sep 17 00:00:00 2001 From: Sendil Kumar Date: Tue, 14 Aug 2018 19:34:43 +0200 Subject: [PATCH] js-sys: Add extends attributes for js_sys::Int16Array --- 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 4034a9c7..461a1125 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -967,6 +967,7 @@ extern "C" { // Int16Array #[wasm_bindgen] extern "C" { + #[wasm_bindgen(extends = Object)] #[derive(Clone, Debug)] pub type Int16Array; diff --git a/crates/js-sys/tests/wasm/TypedArray.rs b/crates/js-sys/tests/wasm/TypedArray.rs index 151dad8a..d57f5364 100644 --- a/crates/js-sys/tests/wasm/TypedArray.rs +++ b/crates/js-sys/tests/wasm/TypedArray.rs @@ -10,6 +10,7 @@ macro_rules! each { $m!(Uint16Array); $m!(Uint32Array); $m!(Int8Array); + $m!(Int16Array); ) }