Skip to content

Commit c623135

Browse files
committed
Do not support JS strings beyond 2^32 bytes
1 parent 37de846 commit c623135

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

proposals/js-text-encoding-builtins/Overview.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func encodeStringIntoUTF8Memory(
168168
string: externref,
169169
start: i64,
170170
end: i64
171-
) -> (i64, i64)
171+
) -> (i32, i64)
172172
{
173173
start >>>= 0;
174174
end >>>= 0;
@@ -217,3 +217,7 @@ There is an [ongoing discussion](https://github.com/WebAssembly/esm-integration/
217217
### Why do the provided functions take `i64` instead of `i32`?
218218

219219
This enables support for the Memory64 proposal.
220+
221+
### What about JS strings larger than 2^32 bytes?
222+
223+
Given that currently no engine supports strings larger than 2^30 and there are currently no plans to do so, we concluded to postpone specifically addressing this. See [#3](https://github.com/WebAssembly/js-text-encoding-builtins/issues/3).

0 commit comments

Comments
 (0)