aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_world.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hello_world.js')
-rw-r--r--tests/hello_world.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hello_world.js b/tests/hello_world.js
index 766e848e..01082eb4 100644
--- a/tests/hello_world.js
+++ b/tests/hello_world.js
@@ -39,9 +39,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;
}