Open afri opened 12 years ago
The following code gives an error:
__js {
X: for(var i=0; i<foo;++i) { ... continue X; }
}
The problem is that our compiler translates this to:
X: i=0; for(;i<foo;++i) { ... continue X; }
I.e. the variable initialization gets pulled out of the 'for' statement.
I'm trying to "stratify" a large amount of javascript code that includes labeled statements. Are there any plans to add support for labeled statements?
The following code gives an error:
__js {
X: for(var i=0; i<foo;++i) { ... continue X; }
}
The problem is that our compiler translates this to:
X: i=0; for(;i<foo;++i) { ... continue X; }
I.e. the variable initialization gets pulled out of the 'for' statement.