examples icon indicating copy to clipboard operation
examples copied to clipboard

Trying to run the examples gives error: "LinkError: WebAssembly.instantiate(): Import #0 module="env" function="Math.log""

Open Sakari369 opened this issue 2 years ago • 3 comments

Trying to build and load the examples with a recent version of Chrome and Safari on macOS Monterey arm64 gives the following error in console.log:

LinkError: WebAssembly.instantiate(): Import #0 module="env" function="Math.log" error: function import requires a callable

Sakari369 avatar May 18 '22 07:05 Sakari369

Seems the examples are not yet updated to v0.20 of the compiler but still require v0.19. Makes sense to update them :)

dcodeIO avatar May 18 '22 13:05 dcodeIO

Well, it definitely makes as one cannot run the examples right now without having to figure out how they should work .. :) :P

Sakari369 avatar May 20 '22 07:05 Sakari369

I use in v0.20, but I don't know how to set it globally

env: {
       'Math.random': Math.random
      }

jxlust avatar Jul 18 '22 15:07 jxlust

Should be fixed now

MaxGraey avatar Aug 12 '22 10:08 MaxGraey