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
Fix bad access to detached ArrayBuffer in $growMemory. (#24524)
Consider:
```js
var m = new WebAssembly.Memory({initial: 64});
var b = m.buffer;
m.grow(64);
console.log(b.byteLength);
```
This will print `0` instead of the old memory size before growing (or
the new memory size after grow), because `b` got detached by the grow.
This caused bad assertions error print, and incorrect profiling.
To fix, avoid referencing a detached buffer.
0 commit comments