diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index f8aff6b1..c913a59f 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -684,7 +684,7 @@ extern "C" { #[wasm_bindgen] extern "C" { // TODO Uncomment this once TypedArray is added: - // #[wasm_bindgen(extends = Object, extends = TypedArray)] + #[wasm_bindgen(extends = Object)] #[derive(Clone, Debug)] pub type Float32Array; diff --git a/crates/js-sys/tests/wasm/TypedArray.rs b/crates/js-sys/tests/wasm/TypedArray.rs index 751ec1bf..4a99cb2e 100644 --- a/crates/js-sys/tests/wasm/TypedArray.rs +++ b/crates/js-sys/tests/wasm/TypedArray.rs @@ -12,6 +12,7 @@ macro_rules! each { $m!(Int8Array); $m!(Int16Array); $m!(Int32Array); + $m!(Float32Array); ) }