<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,7 +29,6 @@ print = function(txt) { Ruby.puts(txt); };
   
   window.__defineSetter__(&quot;location&quot;, function(url){
     var xhr = new XMLHttpRequest();
-    xhr.async = false;
     xhr.open(&quot;GET&quot;, url);
     xhr.onreadystatechange = function(){
       curLocation = curLocation.merge(url);
@@ -652,7 +651,6 @@ print = function(txt) { Ruby.puts(txt); };
       }
 
       if (this.async)
-        // FIXME: This is segfaulting
         new Ruby.Thread(function() { makeRequest(); });
       else
         makeRequest();</diff>
      <filename>js/johnson/browser/env.js</filename>
    </modified>
    <modified>
      <diff>@@ -9,9 +9,18 @@ module Johnson
 
     def test_set_location_returns_location
       filename = &quot;file://#{File.expand_path(__FILE__)}&quot;
-      @runtime.evaluate(&quot;window.location = '#{filename}'&quot;)
+
+      may_thread {
+        @runtime.evaluate(&quot;window.location = '#{filename}'&quot;)
+      }
+
       uri = URI.parse(filename)
       assert_equal(uri.to_s, @runtime.evaluate('window.location').to_s)
     end
+
+    def may_thread(&amp;block)
+      block.call
+      (Thread.list - [Thread.main]).each { |t| t.join }
+    end
   end
 end</diff>
      <filename>test/johnson/browser_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ae3584f2d4e47d82c063c89631bcd8b23acfd9db</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Patterson</name>
    <email>aaron.patterson@gmail.com</email>
  </author>
  <url>http://github.com/jbarnette/johnson/commit/68c9c39f88088f96eed26922a141c0fbb8dc24e2</url>
  <id>68c9c39f88088f96eed26922a141c0fbb8dc24e2</id>
  <committed-date>2008-05-30T18:54:36-07:00</committed-date>
  <authored-date>2008-05-30T18:54:36-07:00</authored-date>
  <message>location = is supposed to be async</message>
  <tree>57c32e7aa5d4061f3f96fa4ae64cc912ab78e5c3</tree>
  <committer>
    <name>Aaron Patterson</name>
    <email>aaron.patterson@gmail.com</email>
  </committer>
</commit>
