mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
3
third_party/WebIDL/WebIDL.py
vendored
3
third_party/WebIDL/WebIDL.py
vendored
|
@ -2408,6 +2408,7 @@ class IDLType(IDLObject):
|
|||
"int32array",
|
||||
"uint32array",
|
||||
"float32array",
|
||||
"float64array",
|
||||
"dictionary",
|
||||
"enum",
|
||||
"callback",
|
||||
|
@ -3648,7 +3649,7 @@ class IDLBuiltinType(IDLType):
|
|||
Types.Int32Array: IDLType.Tags.int32array,
|
||||
Types.Uint32Array: IDLType.Tags.uint32array,
|
||||
Types.Float32Array: IDLType.Tags.float32array,
|
||||
Types.Float64Array: IDLType.Tags.interface,
|
||||
Types.Float64Array: IDLType.Tags.float64array,
|
||||
Types.ReadableStream: IDLType.Tags.interface,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue