Just a wild guess: maybe the name has been mangled by the minification 
pass, while in previous emscripten versions it might have been "protected" 
from minification?

I've seen similar problem in the past where Module.func_name() stopped 
working in newer emscripten versions (especially with stuff like ccall

FWIW I'm using HEAP* as global variable (not Module.HEAP*) and that still 
seems to work, for instance:

https://github.com/floooh/sokol/blob/c8023ab515822005d74c36b3a77656315a5ce1be/sokol_audio.h#L1493-L1498

Cheers,
-Floh.
On Tuesday, 16 February 2021 at 10:20:53 UTC+1 caiiiycuk 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/ef21bd22-4ed4-440c-b573-bc1186468daan%40googlegroups.com.

Reply via email to