aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorTaym Haddadi <haddadi.taym@gmail.com>2024-02-25 13:13:17 +0100
committerGitHub <noreply@github.com>2024-02-25 12:13:17 +0000
commitd0b663800f3faa7343791349c9b0e38e9aeacb82 (patch)
treeb6c65c6bcd3a5b9a1f1da7e7367c2c498e972417 /components/script/dom/testbinding.rs
parent32f1d07323db257db31fead024271d3a57d72b49 (diff)
downloadservo-d0b663800f3faa7343791349c9b0e38e9aeacb82.tar.gz
servo-d0b663800f3faa7343791349c9b0e38e9aeacb82.zip
WedIDL: bring dom/bindings/typedarray further in line with spec (#31375)
* WedIDL: bring dom/bindings/typedarray further in line with spec Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Rename HeapBufferSourceTypes to HeapBufferSource Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * fmt code Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index bd7fd7c4fa3..464ca0220dd 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -17,6 +17,7 @@ use script_traits::serializable::BlobImpl;
use script_traits::MsDuration;
use servo_config::prefs;
+use crate::dom::bindings::buffer_source::create_buffer_source_types;
use crate::dom::bindings::callback::ExceptionHandling;
use crate::dom::bindings::codegen::Bindings::EventListenerBinding::EventListener;
use crate::dom::bindings::codegen::Bindings::FunctionBinding::Function;
@@ -41,7 +42,6 @@ use crate::dom::bindings::reflector::{reflect_dom_object_with_proto, DomObject,
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::{ByteString, DOMString, USVString};
use crate::dom::bindings::trace::RootedTraceableBox;
-use crate::dom::bindings::typedarrays::create_typed_array;
use crate::dom::bindings::weakref::MutableWeakRef;
use crate::dom::blob::Blob;
use crate::dom::globalscope::GlobalScope;
@@ -214,7 +214,7 @@ impl TestBindingMethods for TestBinding {
let data: [u8; 16] = [0; 16];
rooted!(in (*cx) let mut array = ptr::null_mut::<JSObject>());
- create_typed_array(cx, &data, array.handle_mut())
+ create_buffer_source_types(cx, &data, array.handle_mut())
.expect("Creating ClampedU8 array should never fail")
}
fn AnyAttribute(&self, _: SafeJSContext) -> JSVal {