There are a number of reserved words in ActionScript that can't be used as identifiers, but they are allowed in JavaScript. We've been trying to support each of them in the compiler whenever someone needs a new one. It sounds like enum may be one of those that JavaScript allows that ActionScript currently doesn't.
ActionScript and JavaScript used to behave the same way with reserved words, but starting with ECMAScript 5, JavaScript removed some reserved words from the list and also started allowing reserved words as identifiers in certain specific situations. We've already modified the Falcon compiler to allow several new identifiers, and it's not too difficult to add more. We ran into trouble when trying to allow public, private, and internal, but others that aren't namespaces have been fine. - Josh On Mon, May 22, 2017 at 7:08 AM, piotrz <piotrzarzyck...@gmail.com> wrote: > Olaf, > > In that case one thought which came to me is to try COMPILE::JS tag for > method, but as I remember it wasn't working in the end application. I need > to try myself and raise jira probably. > > Piotr > > > > ----- > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this message in context: http://apache-flex- > development.2333347.n4.nabble.com/FlexJS-Compiler-doesn-t- > recognize-reserved-JS-words-like-enum-tp61735p61740.html > Sent from the Apache Flex Development mailing list archive at Nabble.com. >