Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions encoding.bs
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I add text to the SharedArrayBuffer warning about resizable buffers as well?

Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ dictionary TextDecodeOptions {
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});

USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
USVString decode(optional [AllowResizable] AllowSharedBufferSource input, optional TextDecodeOptions options = {});
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a new AllowResizableAndSharedBufferSource here?
Unlike AllowShared, AllowResizable is allowed on ArrayBuffer, so this should work?

};
TextDecoder includes TextDecoderCommon;
</pre>
Expand Down Expand Up @@ -1621,7 +1621,7 @@ interface TextEncoder {
constructor();

[NewObject] Uint8Array encode(optional USVString input = "");
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowResizable, AllowShared] Uint8Array destination);
};
TextEncoder includes TextEncoderCommon;
</pre>
Expand Down