as3hx
as3hx copied to clipboard
Conversion crashes on empty case with comment surrounded by curly braces
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;
}