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, 4 insertions, 0 deletions
diff --git a/src/shell.js b/src/shell.js
index ab54c284..e48be3b0 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -115,6 +115,10 @@ if (!Module['arguments']) {
}
// *** Environment setup code ***
+// Closure helpers
+Module.print = Module['print'];
+Module.printErr = Module['printErr'];
+
{{BODY}}
// {{MODULE_ADDITIONS}}