aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-05 11:40:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-05 11:40:18 -0700
commitdbfb693b60d826a4833c42a96b94ad477198166f (patch)
treeb97e2c6c44be3de764376306537b5c9984ae2cd0
parent57504362caf747c4a00fd08f5536a62f47a9a822 (diff)
parent12acd44d813051fa478284ea2a76cdafee0f01e5 (diff)
Merge branch 'commonjs' of github.com:jazzzz/emscripten into incoming
-rw-r--r--AUTHORS3
-rw-r--r--src/shell.js4
2 files changed, 7 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 7196711d..9e9d5748 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -82,4 +82,7 @@ a license to everyone to use it as detailed in LICENSE.)
* Onno Jongbloed <hey@onnoj.net>
* Jez Ng <me@jezng.com>
* Marc Feeley <mfeeley@mozilla.com> (copyright owned by Mozilla Foundation)
+* Ludovic Perrine <jazzzz@gmail.com>
+
+
diff --git a/src/shell.js b/src/shell.js
index 20db25a7..873bcc65 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -12,6 +12,10 @@ var ENVIRONMENT_IS_WEB = typeof window === 'object';
var ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
+if (typeof module === "object") {
+ module.exports = Module;
+}
+
if (ENVIRONMENT_IS_NODE) {
// Expose functionality in the same simple way that the shells work
// Note that we pollute the global namespace here, otherwise we break in node