mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 09:41:33 +00:00
js-sys: Add extends attributes for js_sys::UInt8ClampedArray
This commit is contained in:
@ -6,13 +6,14 @@ use js_sys::*;
|
||||
macro_rules! each {
|
||||
($m:ident) => (
|
||||
$m!(Uint8Array);
|
||||
$m!(Uint8ClampedArray);
|
||||
)
|
||||
}
|
||||
|
||||
macro_rules! test_inheritence {
|
||||
($arr:ident) => ({
|
||||
let arr = $arr::new(&JsValue::undefined());
|
||||
assert!(arr.is_instance_of::<Uint8Array>());
|
||||
assert!(arr.is_instance_of::<$arr>());
|
||||
assert!(arr.is_instance_of::<Object>());
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user