mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 21:11:22 +00:00
js-sys: Add extends attributes for js_sys::Float32Array
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -12,6 +12,7 @@ macro_rules! each {
|
||||
$m!(Int8Array);
|
||||
$m!(Int16Array);
|
||||
$m!(Int32Array);
|
||||
$m!(Float32Array);
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user