Hacker News new | ask | show | jobs
by h4ch1 875 days ago
Just a hitch found on https://porffor.goose.icu/

On running the example 'Array Reading' with an optimization level of 3 I get the following error

CompileError: WebAssembly.instantiate(): Compiling function #2 failed: local.set[0] expected type f64, found global.get of type i32 @+207

Is this expected?

1 comments

Unfortunately yes, optimizer at high levels is very unstable/aggressive at the moment. Currently working on refactoring things for perf generally instead of just an optimizer, but definitely will fix in the future!