diff options
author | Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me> | 2024-06-15 13:22:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 04:22:42 +0000 |
commit | 8eed3b442b214f678b80dbcc7dca07eeaa1e26ff (patch) | |
tree | f8a232e86616e8e5fd234e7bbb32bed4ff7077f2 /third_party/WebIDL/builtin-array.patch | |
parent | 19067366df28c9131dcbc436bc96a27e64e0a194 (diff) | |
download | servo-8eed3b442b214f678b80dbcc7dca07eeaa1e26ff.tar.gz servo-8eed3b442b214f678b80dbcc7dca07eeaa1e26ff.zip |
Update WebIDL.py (#32495)
* Update WebIDL.py
* Update WebIDL.py
* Add builtin-array.patch
* Fix CodegenRust.py and Configuration.py
* Fix missing downcasts
* mach fmt
* Update check and comment to explain why we need this check
* Update Global of DissimilarOriginWindow.webidl
Diffstat (limited to 'third_party/WebIDL/builtin-array.patch')
-rw-r--r-- | third_party/WebIDL/builtin-array.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/third_party/WebIDL/builtin-array.patch b/third_party/WebIDL/builtin-array.patch new file mode 100644 index 00000000000..bba7660c382 --- /dev/null +++ b/third_party/WebIDL/builtin-array.patch @@ -0,0 +1,49 @@ +--- 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, + } + |