title: Chrome V8 Bug? Function Acting different after being called a 2nd time
body: <p>Please take a look at the following JavaScript. I've taken stuff out of it, so you may focus on the essence of the problem.</p>
  
  <p>You'll notice that I call the prepPath function twice in a row, passing in the exact same string. In firefox and IE8, this function alerts true each time (as expected). But, in Chromium 5.0.375.127 (55887) Ubuntu 10.04, the function returns true the first time, and false the 2nd call, despite the input remaining exactly the same!</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
      function prepPath(str)
      {   
          var regX = /[^\s/"'\\].*[^\s/"'\\]/g;
          if(regX.test(str))
          {
              alert("true: " + str);
          }
          else
          {
              alert("false; " + str);
          }
      }
  
      prepPath("/desktop"); // alerts: true
      prepPath("/desktop"); // alerts: false 
  &lt;/script&gt; 
  </code></pre>
  
  <p>Why is it returning false the second time in Chromium?</p>