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

asformat prododuces invalid code. #1249

Closed
evilpie opened this issue Nov 1, 2024 · 1 comment
Closed

asformat prododuces invalid code. #1249

evilpie opened this issue Nov 1, 2024 · 1 comment

Comments

@evilpie
Copy link

evilpie commented Nov 1, 2024

The following snippet:

package Test
{
  public function split()
  {
    var element = null;
    if (!(element instanceof TextElement))
    {
      throw new Error("error");
    }
  }
}

will be formatted as

package Test
{
	public function split()
	{
		var element = null;
		if (!(elementinstanceof TextElement))
		{
			throw new Error("error");
		}
	}
}

The formatted code is invalid: elementinstanceof TextElement.

Version: apache-royale-0.9.10-bin-js-swf

@joshtynjala
Copy link
Member

Fixed in apache/royale-compiler@975a04b

It was not included in time for the the recent Royale 0.9.12 release, but it will be in the next one.

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