js-sys: Add extends attributes for js_sys::Float32Array

This commit is contained in:
Sendil Kumar
2018-08-14 19:38:33 +02:00
parent 10bc69a8cd
commit d9fbc48daa
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -12,6 +12,7 @@ macro_rules! each {
$m!(Int8Array);
$m!(Int16Array);
$m!(Int32Array);
$m!(Float32Array);
)
}