aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorTaym Haddadi <haddadi.taym@gmail.com>2024-02-16 12:22:16 +0100
committerGitHub <noreply@github.com>2024-02-16 11:22:16 +0000
commitc3e3e72cf29ce6daacebf8da4d4f175a54babd0d (patch)
tree54386fce8e435f7a8b60c2df92e0cada46775ac4 /components/script/dom/bindings/codegen/CodegenRust.py
parentfaaf9e9323f05a9b2f60ed73ea47e342e8d3c6d6 (diff)
downloadservo-c3e3e72cf29ce6daacebf8da4d4f175a54babd0d.tar.gz
servo-c3e3e72cf29ce6daacebf8da4d4f175a54babd0d.zip
WebIDL: Use ArrayBufferViewU8 instead of raw JSObject in bindings (#31325)
* WebIDL: Use ArrayBufferViewU8 instead of raw JSObject in bindings Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove unused imports Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Address review comments Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 3b474a543b0..67405d49c60 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -129,6 +129,7 @@ builtinNames = {
IDLType.Tags.float32array: 'Float32Array',
IDLType.Tags.float64array: 'Float64Array',
IDLType.Tags.arrayBuffer: 'ArrayBuffer',
+ IDLType.Tags.arrayBufferView: 'ArrayBufferView',
}
numericTags = [
@@ -6518,6 +6519,7 @@ def generate_imports(config, cgthings, descriptors, callbacks=None, dictionaries
'js::typedarray::Float32Array',
'js::typedarray::Float64Array',
'js::typedarray::ArrayBuffer',
+ 'js::typedarray::ArrayBufferView',
'crate::dom',
'crate::dom::bindings',
'crate::dom::bindings::codegen::InterfaceObjectMap',