diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 |