kripken/emscripten — pull request #1678 by fadams (2013-09-29 10:50:18+00:00)
Title: Fix module exports with closure

Patched src/shell.js to use module['exports'] = Module; which prevents the closure compiler minifying module.exports thus allowing Module to be correctly seen from node.js.

Added tests into tests/Module-exports as a simple test case, run-test compiles with -O2 --closure 1 and then calls node main.js to check that all is well