aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler.js4
-rw-r--r--src/shell.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 134ac5bd..2e95552d 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -50,9 +50,9 @@ if (ENVIRONMENT_IS_NODE) {
this['read'] = function(f) { snarf(f) };
}
- if (!this['arguments']) {
+ if (typeof scriptArgs != 'undefined') {
arguments_ = scriptArgs;
- } else {
+ } else if (typeof arguments != 'undefined') {
arguments_ = arguments;
}
diff --git a/src/shell.js b/src/shell.js
index bc527192..1648218a 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -42,9 +42,9 @@ if (ENVIRONMENT_IS_NODE) {
this['read'] = function(f) { snarf(f) };
}
- if (!this['arguments']) {
+ if (typeof scriptArgs != 'undefined') {
arguments_ = scriptArgs;
- } else {
+ } else if (typeof arguments != 'undefined') {
arguments_ = arguments;
}