mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +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.
14 lines
149 B
JavaScript
14 lines
149 B
JavaScript
f = function(x)
|
|
{
|
|
var a = 2,
|
|
b = 1;
|
|
while (a < b);
|
|
for (; ; );
|
|
if (a < b);
|
|
else;
|
|
do
|
|
{
|
|
}
|
|
while (a < b);
|
|
}
|