Closed lars-t-hansen closed 11 months ago
Not familiar with the JS API design myself.. @backes did you run into this?
I didn't hit this yet, but the V8 implementation is not complete yet. Also, we currently still only allow up to 4GB memories, even if you use 64 bit for indexing.
But I agree that the JS API will need changes.
@lars-t-hansen what do you propose for the value of "index"? The string u64
or u32
maybe?
SpiderMonkey currently uses “i32” and “i64” for the JS-type representation of index type. IIRC, that’s what the memory64 proposal uses in the text format, so we were trying to stay symmetrical to that.
On Aug 19, 2022, at 9:16 AM, Sam Clegg @.***> wrote:
@lars-t-hansen what do you propose for the value of "index"? The string u64 or u32 maybe?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
I believe this is fixed by #39
This proposal looks like it might need changes to the JS API, off the top of my head at least these: