Add 'continue' command for loops. Also enhance for() unit tests which are now breaking and need to be fixed

This commit is contained in:
Jason Turner
2013-02-23 14:49:20 -07:00
parent e298333ac6
commit c9995480e6
7 changed files with 160 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
var j = 0;
var k = 0;
for (var i = 0; i < 10; ++i)
{
j = i
if (i > 5)
{
continue
}
k = i
}
assert_equal(5, k);
assert_equal(9, j);