You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
i.e. grow is interpreted to take the new byte length.
WebAssembly.Memory.grow() is instead specced to specify how much to grow by, i.e. the value is not interpreted as the new absolute size, but how much to add to the existing size (an increment).
I wonder if it would make sense to use the same interpretation as WebAssembly.Memory.grow()?
Although WebAssembly.Memory.grow() deals in pages and not in bytes. What would happen with
letm=newWebAssembly.Memory({initial: 1,maximum: 10,shared: true});letsharedArrayBuffer=m.buffer;sharedArrayBuffer.grow(65536+32767);// WebAssembly.Memory() is now 1.5 pages long?
?
One way to resolve this might be to make SharedArrayBuffer.grow() simply throw if the grow is not a multiple of 64KB, when the SAB was derived from a WebAssembly.Memory?