Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labeled statements in __js blocks #10

Open
afri opened this issue May 13, 2012 · 1 comment
Open

labeled statements in __js blocks #10

afri opened this issue May 13, 2012 · 1 comment

Comments

@afri
Copy link
Collaborator

afri commented May 13, 2012

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.

@shannah
Copy link

shannah commented Feb 1, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants