Index: jshydra.js |
=================================================================== |
--- a/jshydra.js |
+++ b/jshydra.js |
@@ -35,9 +35,9 @@ var _print = print; |
} |
if (!scriptArgs.length) |
throw Error("No script to execute"); |
include(scriptArgs[0]); |
for (var i = 1; i < scriptArgs.length; i++) |
process_js(Reflect.parse(read(scriptArgs[i])), scriptArgs[i], scriptArg); |
-})(arguments); |
+})(this.arguments || this.scriptArgs); |
Wladimir Palant
2014/04/10 17:15:10
I don't really get this change, mind explaining?
|