Skip to content

Commit

Permalink
js: Fix setting *ARGV* in step6 & step7
Browse files Browse the repository at this point in the history
  • Loading branch information
dubek committed May 11, 2016
1 parent a1a3a8d commit 5f5c06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/step6_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ rep("(def! not (fn* (a) (if a false true)))");
rep("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))");

if (typeof process !== 'undefined' && process.argv.length > 2) {
repl_env.set('*ARGV*', process.argv.slice(3));
repl_env.set(types._symbol('*ARGV*'), process.argv.slice(3));
rep('(load-file "' + process.argv[2] + '")');
process.exit(0);
}
Expand Down
2 changes: 1 addition & 1 deletion js/step7_quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ rep("(def! not (fn* (a) (if a false true)))");
rep("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))");

if (typeof process !== 'undefined' && process.argv.length > 2) {
repl_env.set('*ARGV*', process.argv.slice(3));
repl_env.set(types._symbol('*ARGV*'), process.argv.slice(3));
rep('(load-file "' + process.argv[2] + '")');
process.exit(0);
}
Expand Down

0 comments on commit 5f5c06e

Please sign in to comment.