taustin/Zaphod — pull request #5 by beala (2013-02-03 23:08:47+00:00)
Title: Fixes infinite loop when switching on NaN w/ default case.

If NaN is the descriminant of a switch, and there's a default case
(`switch(NaN){default:true}`), then the interpreter will hang. This is
because the interpreter breaks the switch loop by checking if the
descriminant is equal to some other value. Since NaN doesn't equal any
value (even itself) the switch loop never breaks.

The fix is to explicitly check if the matchDefault flag has been set.