mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 22:17:03 +00:00
Earlier the compiler generated the 'if' without the last ';' when a empty statement is used, with sometimes devastating result. The same if an empty statement was after the 'else'. I have also added a test case for some different empty statement senarios.
8 lines
105 B
Plaintext
8 lines
105 B
Plaintext
function f(x) {
|
|
var a = 2, b = 1;
|
|
while (a < b);
|
|
for (;;);
|
|
if (a < b); else;
|
|
do {} while (a < b);
|
|
}
|