mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use Int8array, int16array, uint16array, int32array & uint32array in WebIDL (#31164)
<!-- Please describe your changes on the following line: --> part #31064 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because there is no behavior changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> There types are not used we can migrate them, in next PR I will make `HeapFloat32Array` generic and convert ArrayBufferView, ArrayBuffer, Uint8ClampedArray and Float64Array. Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
50f56affe3
commit
bb04c97f15
2 changed files with 23 additions and 8 deletions
17
third_party/WebIDL/WebIDL.py
vendored
17
third_party/WebIDL/WebIDL.py
vendored
|
@ -2401,8 +2401,13 @@ class IDLType(IDLObject):
|
|||
"object",
|
||||
# Funny stuff
|
||||
"interface",
|
||||
"float32array",
|
||||
"int8array",
|
||||
"uint8array",
|
||||
"int16array",
|
||||
"uint16array",
|
||||
"int32array",
|
||||
"uint32array",
|
||||
"float32array",
|
||||
"dictionary",
|
||||
"enum",
|
||||
"callback",
|
||||
|
@ -3635,13 +3640,13 @@ class IDLBuiltinType(IDLType):
|
|||
Types.object: IDLType.Tags.object,
|
||||
Types.ArrayBuffer: IDLType.Tags.interface,
|
||||
Types.ArrayBufferView: IDLType.Tags.interface,
|
||||
Types.Int8Array: IDLType.Tags.interface,
|
||||
Types.Int8Array: IDLType.Tags.int8array,
|
||||
Types.Uint8Array: IDLType.Tags.uint8array,
|
||||
Types.Uint8ClampedArray: IDLType.Tags.interface,
|
||||
Types.Int16Array: IDLType.Tags.interface,
|
||||
Types.Uint16Array: IDLType.Tags.interface,
|
||||
Types.Int32Array: IDLType.Tags.interface,
|
||||
Types.Uint32Array: IDLType.Tags.interface,
|
||||
Types.Int16Array: IDLType.Tags.int16array,
|
||||
Types.Uint16Array: IDLType.Tags.uint16array,
|
||||
Types.Int32Array: IDLType.Tags.int32array,
|
||||
Types.Uint32Array: IDLType.Tags.uint32array,
|
||||
Types.Float32Array: IDLType.Tags.float32array,
|
||||
Types.Float64Array: IDLType.Tags.interface,
|
||||
Types.ReadableStream: IDLType.Tags.interface,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue