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

Open
evilpie opened this issue Nov 1, 2024 · 0 comments
Open

asformat prododuces invalid code. #1249

evilpie opened this issue Nov 1, 2024 · 0 comments

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

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

1 participant