apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

[JX] instanceof operator enclosed in parentheses in actionscript does not propagate parentheses to JS output #209

Closed greg-dove closed 2 years ago

greg-dove commented 2 years ago

if (!(xml instanceof XML)) {doSomething}

is being output in JS as:

if (!xml instanceof XML) {doSomething}

which is quite wrong.