diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-10 20:48:38 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-10 20:48:38 -0800 |
commit | 16a74c6374e747e30aaec01894e2100ebff36f2c (patch) | |
tree | 7d3d80d57ab3b4d68e1a7bbad292ab32adcb85fe /tests/hello_world.js | |
parent | 551c2c8c863d76ccecdd0247a7d523dcd87dc993 (diff) |
better handling of detection of scriptArgs and arguments
Diffstat (limited to 'tests/hello_world.js')
-rw-r--r-- | tests/hello_world.js | 4 |
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; } |