aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_world.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-18 19:22:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-18 19:22:09 -0700
commit1c11fdd98530b6d35e51c0eba14fb1f375d05229 (patch)
treebd471ce02003d0e1d16dfe773d1ed4d0acdcb499 /tests/hello_world.js
parentd6cff2177ec065aa14f228ab547abc29ef37b248 (diff)
parent327b6f859e95be71e5613f24cc1c9d4f4b97c15f (diff)
merge
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;
}