<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff></diff>
      <filename>dist/env-js.jar</filename>
    </modified>
    <modified>
      <diff>@@ -8603,7 +8603,7 @@ XMLHttpRequest.prototype = {
                                     $debug(&quot;parsing response text into xml document&quot;);
                                     responseXML = $domparser.parseFromString(_this.responseText+&quot;&quot;);
                                     return responseXML;
-                                } catch(e) { 
+                                } catch(e) {
                                     $error('response XML does not apear to be well formed xml', e);
                                     responseXML = $domparser.parseFromString(&quot;&lt;html&gt;&quot;+
                                         &quot;&lt;head/&gt;&lt;body&gt;&lt;p&gt; parse error &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;);</diff>
      <filename>dist/env.js</filename>
    </modified>
    <modified>
      <diff>@@ -9260,7 +9260,7 @@ XMLHttpRequest.prototype = {
                                     $debug(&quot;parsing response text into xml document&quot;);
                                     responseXML = $domparser.parseFromString(_this.responseText+&quot;&quot;);
                                     return responseXML;
-                                } catch(e) { 
+                                } catch(e) {
                                     $error('response XML does not apear to be well formed xml', e);
                                     responseXML = $domparser.parseFromString(&quot;&lt;html&gt;&quot;+
                                         &quot;&lt;head/&gt;&lt;body&gt;&lt;p&gt; parse error &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;);</diff>
      <filename>dist/env.rhino.js</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,15 @@ package org.mozilla.javascript.tools.envjs;
 public class Main extends org.mozilla.javascript.tools.shell.Main
 {
 
+    private static class Quitter implements
+        org.mozilla.javascript.tools.shell.QuitAction
+    {
+        public void quit(org.mozilla.javascript.Context cx, int exitCode)
+        {
+            System.exit(exitCode);
+        }
+    }
+
     static
     {           
         // replace the generic Global object, instantiated in
@@ -31,5 +40,6 @@ public class Main extends org.mozilla.javascript.tools.shell.Main
         // &quot;Sharing Scopes&quot; in
         // https://developer.mozilla.org/En/Rhino_documentation/Scopes_and_Contexts
         global = new Global(window);
+        global.initQuitAction(new Quitter());
     }
 }</diff>
      <filename>rhino/src/org/mozilla/javascript/tools/envjs/Main.java</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1b5d4de28c6732be423e3a584ba530de62c324a6</id>
    </parent>
  </parents>
  <author>
    <name>Glen E. Ivey</name>
    <email>gleneivey@wontology.org</email>
  </author>
  <url>http://github.com/thatcher/env-js/commit/6c1fd5dcadbb25d6c3de5e687ce688eb021b27fb</url>
  <id>6c1fd5dcadbb25d6c3de5e687ce688eb021b27fb</id>
  <committed-date>2009-10-14T19:29:13-07:00</committed-date>
  <authored-date>2009-10-14T19:29:13-07:00</authored-date>
  <message>Added support for the &quot;quit&quot; command/function provided by the Rhino shell
before I started sub-classing it.  All env.js tests pass, and I have
manually confirmed that &quot;quit();&quot; now works when using env-js.jar as an
interactive shell.</message>
  <tree>83bb84d89c9b5697ecffb7a55398534041d40638</tree>
  <committer>
    <name>Glen E. Ivey</name>
    <email>gleneivey@wontology.org</email>
  </committer>
</commit>
