diff options
Diffstat (limited to 'src/shell.js')
-rw-r--r-- | src/shell.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |