| "Tests whether peephole optimizations on bytecode properly deal with local registers." |
| shouldBeTrue("if_less_test()"); |
| function if_else_less_test() |
| shouldBeTrue("if_else_less_test()"); |
| function conditional_less_test() |
| return (a = 1 < 2) ? a == 1 : false; |
| shouldBeTrue("conditional_less_test()"); |
| function logical_and_less_test() |
| return (a = 1 < 2) && a == 1; |
| shouldBeTrue("logical_and_less_test()"); |
| function logical_or_less_test() |
| var result = (a = 1 < 2) || a == 1; |
| shouldBeTrue("logical_or_less_test()"); |
| function do_while_less_test() |
| shouldBeTrue("do_while_less_test()"); |
| function while_less_test() |
| shouldBeTrue("while_less_test()"); |
| for (var a = 0; a = 1 < 2; ) |
| shouldBeTrue("for_less_test()"); |