aboutsummaryrefslogtreecommitdiff
path: root/src/shell.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.js')
-rw-r--r--src/shell.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shell.js b/src/shell.js
index 7bfbe781..bb89ab6e 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -68,7 +68,9 @@ if (ENVIRONMENT_IS_NODE) {
Module['arguments'] = process['argv'].slice(2);
- module.exports = Module;
+ // Explicitly using associative array form instead of dot notation form prevents the closure compiler
+ // minifying the exports property, which is important if Module is to remain visible to node.js
+ module['exports'] = Module;
}
else if (ENVIRONMENT_IS_SHELL) {
Module['print'] = print;