aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorTaym Haddadi <haddadi.taym@gmail.com>2024-01-23 13:15:42 +0100
committerGitHub <noreply@github.com>2024-01-23 12:15:42 +0000
commit890588945d2f0b9ad28d024d5a1ba2fb85542637 (patch)
tree6b0698a65bd4fa8ffda956f1dca8c80032b6f5e7 /components/script/dom/bindings/codegen/CodegenRust.py
parent7de0486e2e67a17e4cdcc881c7f3bd3fd1a66fb6 (diff)
downloadservo-890588945d2f0b9ad28d024d5a1ba2fb85542637.tar.gz
servo-890588945d2f0b9ad28d024d5a1ba2fb85542637.zip
Use Uint8Array for TextEncoder (#31145)
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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 2fdc879e62e..10ccc0ef898 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -120,7 +120,8 @@ builtinNames = {
IDLType.Tags.float: 'Finite<f32>',
IDLType.Tags.unrestricted_double: 'f64',
IDLType.Tags.double: 'Finite<f64>',
- IDLType.Tags.float32array: 'Float32Array'
+ IDLType.Tags.float32array: 'Float32Array',
+ IDLType.Tags.uint8array: 'Uint8Array'
}
numericTags = [
@@ -6502,6 +6503,7 @@ def generate_imports(config, cgthings, descriptors, callbacks=None, dictionaries
'js::rust::get_object_class',
'js::typedarray',
'js::typedarray::Float32Array',
+ 'js::typedarray::Uint8Array',
'crate::dom',
'crate::dom::bindings',
'crate::dom::bindings::codegen::InterfaceObjectMap',