aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js4
1 files changed, 2 insertions, 2 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;
}