We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Checked revision: 98fc409 Build: debug.linux
Ubuntu 15.04, x86_64
var a = "foo"; switch(a) { case true ? "foo" : "bar": print("OK"); break; }
Output:
case true ? "foo" : "bar": ^ ERROR: Ln 3, Col 30: Expected either ';' or newline token
According to ecma5, any expression can stand in a case clause after the 'case' keyword but ternary statements are rejected in jerry.
The text was updated successfully, but these errors were encountered:
@renatahodovan I think we can close this. Check out #666.
Sorry, something went wrong.
Works on master (f17f785)
No branches or pull requests
Jerry version:
OS:
Test case:
Output:
According to ecma5, any expression can stand in a case clause after the 'case' keyword but ternary statements are rejected in jerry.
The text was updated successfully, but these errors were encountered: