I've tried generating a shell HTML page, and yes it does print stderr to the console. Also, if I include an a.out.js file (generated by em++ without options) in a hand-written HTML page, stderr gets printed to the console as well. So, stderr printing should work, the question is why it's not working in the ChucK case.
Does anyone have any hints as to debugging why Module.printErr doesn't get called for printing to stderr? I've deduced that Module.printErr does in fact write to the console, because Emscripten generates one (successfull) call to it (to inform of 'pre-main prep time'). As such, it seems to me that the code generated from ChucK ends up not calling Module.printErr for printing to stderr.
Arve