aboutsummaryrefslogtreecommitdiff
path: root/src/shell.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-12 15:10:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-12 15:10:11 -0700
commitd2f680e7a4eee462dd487e6482c8ee4c27f7c6bb (patch)
tree9f785c58fbda93fe96946513587b195ed0342668 /src/shell.js
parent4fe256e2571b288e98fe81d20eb37f9fba1006f0 (diff)
clean up shell.js
Diffstat (limited to 'src/shell.js')
-rw-r--r--src/shell.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/shell.js b/src/shell.js
index 3b762e18..f18fc3ca 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -6,8 +6,15 @@
// args = args || [];
// Runs much faster, for some reason
-this['Module'] = {};
-var args = arguments;
+if (!this['Module']) {
+ this['Module'] = {};
+}
+try {
+ Module.arguments = arguments;
+} catch(e) {
+ Module.arguments = [];
+}
+
{{BODY}}
// {{MODULE_ADDITIONS}}