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
index-DAfNCrBY.js:42708 Error: Build failed with 1 error:
TypeError: Failed to execute 'decode' on 'TextDecoder': The provided ArrayBufferView value must not be shared.
TypeError: The provided ArrayBufferView value must not be shared.
at Object.UTF8ToString (index-DAfNCrBY.js:9305:49)
From the beginning there is no problem until the wasm memory get grow.
When WebAssembly.Memory get grow, v8 will recreated an internal SharedArrayBuffer (but not the same reference to globalThis.SharedArrayBuffer) for WebAssembly.prototype.buffer getter to access, which causes the HEAPU8.buffer instanceof ShardArrayBuffer evaluated to false.
This is always "[object Function]", the .constructor is redundant. I have tried that even HEAPU8.buffer is changed to internal SharedArrayBuffer Object.prototype.toString.call(HEAPU8.buffer) can gets the correct result.
Uh oh!
There was an error while loading. Please reload this page.
Reproduction:
Source code: https://github.com/sxzz/rolldown-browser (cannot build locally)
Screen.Recording.2025-04-15.at.11.33.22.mov
/cc @Brooooooklyn
Can we check buffer byusing
HEAPU8.buffer[Symbol.toStringTag] === 'SharedArrayBuffer'
?The text was updated successfully, but these errors were encountered: