mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-23 03:31:44 +00:00
Flow improvements
Makes the internal API for working with flows more explicit in an attempt to avoid further issues. Also tackles remaining issues with 'continue' statements in 'for' loops.
This commit is contained in:
@ -17,3 +17,9 @@ for (;;) if (--i == 0) break;
|
||||
|
||||
for (var k: i32 = 0; k < 10; ++k) continue;
|
||||
assert(k == 10);
|
||||
|
||||
for (let i = 0; i < 10; i++) { // without continue block
|
||||
for (let j = 0; j < 10; j++) { // with continue block
|
||||
if (i === j) continue;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user