Files
archived-verso/third_party/WebIDL/builtin-array.patch
Ngo Iok Ui (Wu Yu Wei) a5bdd6a104 feat: flatpak support (#91)
* Add flatpak manifest

Known issues:
- MOZJS_ARCHIVE need to link manually
- Mozangle build failed due to stddef.h missing
- script build failed due to missing WebIDL python module

* Fix mozangle and script build errors

* Update README.md

* Update gitignore

* Add libmozjs archive

* Import more granular servo crates

* Fix running error in flatpak

* Enable surfman features on Windows

* Enable mozangle features instead

* build(flatpak): add verso desktop file

---------

Co-authored-by: Wu Yuwei <Wu Yu Wei>
Co-authored-by: Jason Tsai <jason@pews.dev>
2024-08-01 02:27:39 +00:00

50 lines
1.9 KiB
Diff

--- WebIDL.py
+++ WebIDL.py
@@ -2549,6 +2549,17 @@ class IDLType(IDLObject):
"object",
# Funny stuff
"interface",
+ "int8array",
+ "uint8array",
+ "int16array",
+ "uint16array",
+ "int32array",
+ "uint32array",
+ "float32array",
+ "float64array",
+ "arrayBuffer",
+ "arrayBufferView",
+ "uint8clampedarray",
"dictionary",
"enum",
"callback",
@@ -3842,17 +3853,17 @@ class IDLBuiltinType(IDLType):
Types.utf8string: IDLType.Tags.utf8string,
Types.jsstring: IDLType.Tags.jsstring,
Types.object: IDLType.Tags.object,
- Types.ArrayBuffer: IDLType.Tags.interface,
- Types.ArrayBufferView: IDLType.Tags.interface,
- Types.Int8Array: IDLType.Tags.interface,
- Types.Uint8Array: IDLType.Tags.interface,
- 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.Float32Array: IDLType.Tags.interface,
- Types.Float64Array: IDLType.Tags.interface,
+ Types.ArrayBuffer: IDLType.Tags.arrayBuffer,
+ Types.ArrayBufferView: IDLType.Tags.arrayBufferView,
+ Types.Int8Array: IDLType.Tags.int8array,
+ Types.Uint8Array: IDLType.Tags.uint8array,
+ Types.Uint8ClampedArray: IDLType.Tags.uint8clampedarray,
+ 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.float64array,
Types.ReadableStream: IDLType.Tags.interface,
}