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 }}
Repository navigation
Uncaught ReferenceError error in abort (preamble.js) when WebAssembly is not available #21484
My question is, is it intentional for it to fail with an Uncaught ReferenceError: WebAssembly is not available or was that a side effect of WASM being true and then being removed? It does seem per the original intent that there should be an error thrown at this point to exit/abort the script, so would any fix just end up throwing a manually crafted error instead of failing due to WebAssembly being undefined?
changed the title [-]Open Uncaught ReferenceError error in abort when WebAssembly is not available [/-][+]Uncaught ReferenceError error in abort when WebAssembly is not available [/+]on Mar 7, 2024
changed the title [-]Uncaught ReferenceError error in abort when WebAssembly is not available [/-][+]Uncaught ReferenceError error in abort (preamble.js) when WebAssembly is not available [/+]on Mar 7, 2024
In a debug build we should make sure we have a clear error for this. If we don't have one we should add one.
In a release build that targets wasm (i.e. not wasm2js) we do not generally add to the output size in order to get nicer error messages. Running such a build on a VM without the WebAssembly object would be a such a case, I think - not worth adding to size for, in release.
I believe it is in a release build. I agree it would be nice to have a clear error in a debug build, if nothing else, it would make it clear when reading that code that it is throwing intentionally and is not an error that requires resolution.
Activity
[-]Open Uncaught ReferenceError error in abort when WebAssembly is not available [/-][+]Uncaught ReferenceError error in abort when WebAssembly is not available [/+][-]Uncaught ReferenceError error in abort when WebAssembly is not available [/-][+]Uncaught ReferenceError error in abort (preamble.js) when WebAssembly is not available [/+]kripken commentedon Mar 8, 2024
Is this in a debug or release build?
In a debug build we should make sure we have a clear error for this. If we don't have one we should add one.
In a release build that targets wasm (i.e. not wasm2js) we do not generally add to the output size in order to get nicer error messages. Running such a build on a VM without the
WebAssemblyobject would be a such a case, I think - not worth adding to size for, in release.localpcguy commentedon Mar 11, 2024
I believe it is in a release build. I agree it would be nice to have a clear error in a debug build, if nothing else, it would make it clear when reading that code that it is throwing intentionally and is not an error that requires resolution.
Only check for WebAssembly support in debug builds. NFC
Only check for WebAssembly support in debug builds. NFC
Only check for WebAssembly support in debug builds. NFC
Only check for WebAssembly support in debug builds. NFC (#21511)
Merge upstream 3.1.56 (#64)