wasm32-wasi: Includes Classes unit cause error
Summary
Include Classes
unit result in error when running the compiled binaries.
System Information
-
Operating system: Host:
Arch Linux
. Client:WASI
-
Processor architecture: Host:
x86_64
. Client:wasm32
- Compiler version: 3.3.1-9888-g9d95e615
- Device: Computer
Steps to reproduce
program App;
uses
Classes;
begin
end.
- Build the above program with
fpc -Twasi -Pwasm32 -MObjFPC -oapp.wasm app.pas
- Run the generated binaries on either web browsers, or https://webassembly.sh/
What is the current bug behavior?
Compilation completes but binaries causes this error message on web browsers: index.js:93 Uncaught (in promise) CompileError: WebAssembly.instantiateStreaming(): Compiling function #398 failed: i64.store[1] expected type i64, found local.get of type i32 @+203226
Similar error also occurs on https://webassembly.sh/
What is the expected (correct) behavior?
No errors in the generated binaries.
Edited by kagamma