Chromium Code Reviews| Index: test/mjsunit/mjsunit.js | 
| =================================================================== | 
| --- test/mjsunit/mjsunit.js (revision 905) | 
| +++ test/mjsunit/mjsunit.js (working copy) | 
| @@ -90,12 +90,14 @@ | 
| function assertThrows(code) { | 
| + var threwException = true; | 
| try { | 
| eval(code); | 
| - assertTrue(false, "did not throw exception"); | 
| + threwException = false; | 
| } catch (e) { | 
| // Do nothing. | 
| } | 
| + if (!threwException) assertTrue(false, "did not throw exception"); | 
| } |