kripken/emscripten — pull request #1425 by inolen (2013-07-22 21:55:23+00:00)
Title: eliminate default Module global

This changes the `Module` object to be declared as a local variable now. I'd meant to do this a while back when I first added `EXPORT_NAME` but I forgot.

As well, if an existing Module object exists, it copies off and then restores its properties _after_ the environment initialization to eliminate the need to be so defensive when setting up the environment.

`runner.py` needed an update because now the `Module` will get mangled as it's no longer a global variable.

Ran o1, other and browser tests.