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

v2: Unexpected token ';'. Expected ')' to end a compound expression #251

Closed
aalemayhu opened this issue Dec 6, 2019 — with GitSpeak · 1 comment
Closed

v2: Unexpected token ';'. Expected ')' to end a compound expression #251

aalemayhu opened this issue Dec 6, 2019 — with GitSpeak · 1 comment

Comments

Copy link
Member

The following snippet does not work in 2.0.0-alpha.9

const values = ['1/3', '2/3', '3/3']                                                                                                      
imba.mount <div>                                                                                                                          
        for x in values                                                                                                                   
                <h1> x

I tested it on Scrimba and there it renders as expected, https://scrimba.com/c/cLpLPQHV

The exeception I get is

[Error] SyntaxError: Unexpected token ';'. Expected ')' to end a compound expression.                                                     
        (anonymous function) (index.js:1249)    

For the sake of completeness I have attached the compiled output.

index.js

somebee added a commit that referenced this issue Dec 16, 2019
Still many similar cases that are not handled correctly
somebee added a commit that referenced this issue Dec 18, 2019
Still many similar cases that are not handled correctly
Copy link
Member

somebee commented Dec 30, 2019

Fixed :)

@somebee somebee closed this as completed Dec 30, 2019
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