Skip to content

Commit

Permalink
Updated to env.js 1.0.rc7.
Browse files Browse the repository at this point in the history
  - Updated the env.rhino.js and env-js.jar files.
  - Note that the shell defined in env-js.jar doesn't
    define "quit()" anymore, so I had to change our
    `rake js:shell` script to implement its own "quit"
    and "exit" commands.
  • Loading branch information
karnowski committed Oct 12, 2009
1 parent 0033299 commit 6128c60
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 171 deletions.
5 changes: 2 additions & 3 deletions lib/shell.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(function(){
var _old_quit = this.quit;
this.__defineGetter__("exit", function(){ _old_quit() });
this.__defineGetter__("quit", function(){ _old_quit() });
this.__defineGetter__("exit", function(){ java.lang.System.exit(0) });
this.__defineGetter__("quit", function(){ java.lang.System.exit(0) });

print("=================================================");
print(" Rhino JavaScript Shell");
Expand Down
Binary file modified vendor/env-js.jar
Binary file not shown.
Loading

0 comments on commit 6128c60

Please sign in to comment.