Issue metadata
Sign in to add a comment
|
Use of TextDecoder causes WebAssembly.instantiate to later fail
Reported by
mdb...@gmail.com,
Jul 27
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 Steps to reproduce the problem: 1. Expand attached, which contains both source code and build products from emscripten 1.38.10 2. Open index.html What is the expected behavior? Should display "Success" in the console if the WebAssembly side module "module.so" loads correctly. What went wrong? The act of decoding a UTF-8 string on the emscripten WebAssembly heap using TextDecoder seems to cause a negative interaction such that the next call to WebAssembly.instantiate fails, rejecting the promise with an "undefined" error. Did this work before? Yes 68.0.3440.75 Does this work in other browsers? Yes Chrome version: 69.0.3493.3 Channel: dev OS Version: Fedora 27 Flash Version: The component is more likely WebAssembly, but I chose Javascript as that wasn't an option. Also see this gist for the source code: https://gist.github.com/mdboom/61bafc2b33e27d16f71ccbed1e9af0e5 Original bug report: https://github.com/iodide-project/pyodide/issues/93
,
Jul 27
If this is a regression, could it be related to the baseline compiler? (the baseline compiler can be enabled or disabled in chrome://flags so it should be easy to check that)
,
Jul 27
,
Jul 27
Doesn't look related to baseline - I disabled baseline, restarted, and still see the same behavior.
,
Oct 25
Can reproduce in M-69, but not in M-70. Considering fixed. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by alonza...@gmail.com
, Jul 27