Hi,

Would it be possible to have separate lists of these words and to activate 
these in the individual compilations? 
I guess the stream will definitely direct towards more people migrating to JS 
so I think we shouldn’t prohibit flash related reserver words in the js world.

What do you think?

Chris

Am 22.05.17, 17:04 schrieb "Josh Tynjala" <joshtynj...@gmail.com>:

    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.
    >
    

Reply via email to