title: RegExp.test() returns different result for same str depending on how (where ?) it is called
body: <p>I've just notice a strange JS behavior that lead to an annoying bug..</p>
  
  <p>Basically, I test a str with a RegExp object (.test() method) in a if statement.
  For the same string tested, if in my code I have only a if, the regexp.test() return true and it goes fine into the if.</p>
  
  <p>The problem is if I had a else (and I need it), for some reason, for the same str tested, the regexp.test() returns false and it goes to the else...</p>
  
  <p>What is this behavior ?</p>
  
  <p>I have run many tests...</p>
  
  <p>TL/DR : For the same string tested on the same RegExp, if there is only a IF statement the regexp.test() returns true, but if I had a else it returns false.</p>
  
  <pre><code>some code
  </code></pre>
  
  <p>I forgot to say that the bug doesn't occurs with all words..</p>
  
  <p><a href="http://jsfiddle.net/zrwkU/13/" rel="noreferrer">http://jsfiddle.net/zrwkU/13/</a></p>
  
  <p>Write the word "armoire" in the text field and press enter.
  This jsfiddle has the "else return false" and nothing happens.</p>
  
  <p>Remove the "else return false" in the searchDeeper function ( if (regexp.test(tested)){ ) and do the test again. Now it goes into the if and a msgbox popup.</p>