wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

Wasmer 3.3 js failes to load module when size above 4KB on Chromium

Open kobyhallx opened this issue 1 year ago • 5 comments

Describe the bug

Wasmer 3.3 js failes to load module when size above 4KB on Chromium/Chrome

wasmer::js::module: Error while compiling JsValue(RangeError: 
WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. 
Use WebAssembly.compile, or compile on a worker thread.
RangeError: WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. 
Use WebAssembly.compile, or compile on a worker thread.

Steps to reproduce

Call Module::new on Chromium/Chrome with bytes sized above 4KB.

Expected behavior

Executes Module::new just fine.

...or exposes more appropriate async functions. ...or allows to pass native Objects (Module&Instance)

Actual behavior

Panics with #3973

Additional context

at 5eeda45 Release 3.3.0 (https://github.com/wasmerio/wasmer/pull/3842)

kobyhallx avatar Jun 08 '23 14:06 kobyhallx