On 10/5/16, 11:10 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>So, this is only an issue for static functions and vars? Constants should >be fine. Right? Actually, only for static getters and setters. The output for vars, consts and functions are not being changed at all and GCC will rename them and set up aliases for them, which seems to work fine, because GCC will use the same new variable name for all references to the static var, const, or function, since they are declared via the standard: Class.someStaticVarConstOrFunction = ... GCC does not understand that getter/setter names in the Object.defineProperties structure we use in our output also belongs to the same class so it picks a new variable name and thus the getter/setter don't get called. HTH, -Alex