Hmm, the HEAP* views are always exported, https://github.com/emscripten-core/emscripten/blob/2e48b2debd5e984cde2cee563f4a359a9d688c46/src/preamble.js#L268-L281
I verified manually that that works in a hello world at all optimization levels. Do you have a testcase showing the issue? On Tue, Feb 16, 2021 at 1:20 AM Александр Гурьянов <[email protected]> wrote: > Hi. I faced issue that my js code stop working from 2.0.10. It uses > Module.HEAP* variables to access wasm memory. However from 2.0.10 Module > does not contains this variables anymore. Is it expected behavior, how I > can reexport them? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVFe05FCEJ%2BW0umu52uE62f9JtykGL-z98Eqd37hYtA%2BmQ%40mail.gmail.com > <https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVFe05FCEJ%2BW0umu52uE62f9JtykGL-z98Eqd37hYtA%2BmQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpR%3DUAKhswG03pZCXqr0sLQ6ZUU8Wt3ZnQbGEK_S6-ScPQ%40mail.gmail.com.
