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

Conversion crashes on empty case with comment surrounded by curly braces #329

Open
knetworx opened this issue Sep 27, 2018 · 0 comments
Open
Labels

Comments

@knetworx
Copy link

I had a few case statements in my AS3 code that looked like this:

case "somecase":
	{
		//trace("my debug output");
	} // Fall through intentionally
case "someothercase":
	{
		//success = true;
		break;
	}

expected result

case "somecase", "someothercase":
	{
		//success = true;
		break;
	}

actual result
Conversion crashes - command line says the following:

Uncaught exception - Invalid field access : index

I can get the expected result if I change the original AS3 code to

case "updatedirect":
case "update":
	{
		//success = true;
		break;
	}
@SlavaRa SlavaRa added the bug label Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants