mirror of
https://github.com/servo/servo
synced 2026-05-01 03:47:53 +02:00
Update webidl files for TextEncoder and TextDecoder (#37952)
This PR updates the webidl files for `TextEncoder` and `TextDecoder`. For `TextDecoder.webidl`, the type `AllowSharedBufferSource`, as defined in the latest spec, is replaced with `BufferSource` as servo currently does not support `ShareArrayBuffer` Testing: This update does not introduce any change to the generated rust binding, so the existing testing would suffice --------- Signed-off-by: Minghua Wu <michael.wu1107@gmail.com> Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com> Co-authored-by: Xiaocheng Hu <xiaochengh.work@gmail.com>
This commit is contained in:
@@ -9,11 +9,12 @@ dictionary TextEncoderEncodeIntoResult {
|
||||
unsigned long long written;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
[Exposed=*]
|
||||
interface TextEncoder {
|
||||
[Throws] constructor();
|
||||
readonly attribute DOMString encoding;
|
||||
|
||||
[NewObject]
|
||||
Uint8Array encode(optional USVString input = "");
|
||||
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
|
||||
};
|
||||
TextEncoder includes TextEncoderCommon;
|
||||
|
||||
Reference in New Issue
Block a user