mirror of
https://github.com/servo/servo.git
synced 2025-07-26 16:50:23 +01:00
webidlg: Handle Float64Array
as a TypedArray
rather than a raw JSObject
(#31189)
* WebIDL use FLoat64Array Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Use to_vec to convert array to vec * avoid allocating a new vec --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
7f0d0830e7
commit
967925c119
4 changed files with 17 additions and 18 deletions
|
@ -127,6 +127,7 @@ builtinNames = {
|
|||
IDLType.Tags.int32array: 'Int32Array',
|
||||
IDLType.Tags.uint32array: 'Uint32Array',
|
||||
IDLType.Tags.float32array: 'Float32Array',
|
||||
IDLType.Tags.float64array: 'Float64Array',
|
||||
}
|
||||
|
||||
numericTags = [
|
||||
|
@ -6514,6 +6515,7 @@ def generate_imports(config, cgthings, descriptors, callbacks=None, dictionaries
|
|||
'js::typedarray::Int32Array',
|
||||
'js::typedarray::Uint32Array',
|
||||
'js::typedarray::Float32Array',
|
||||
'js::typedarray::Float64Array',
|
||||
'crate::dom',
|
||||
'crate::dom::bindings',
|
||||
'crate::dom::bindings::codegen::InterfaceObjectMap',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue