Based on a quick test, a member variable on a class that is uninitialized
will be undefined with the current JavaScript output. When a member
variable is initialized, we currently output that in the constructor, but
we don't output any fallback default values for uninitialized members. To
me, that seems like it could be considered a bug. Uninitialized member
variables should probably have default value (null, NaN, false, or 0,
depending on the type).

- Josh

On Wed, Feb 10, 2016 at 1:30 PM, Harbs <harbs.li...@gmail.com> wrote:

> I’m not sure about a point in the cross-compiler:
>
> IFAIK, all uninitiated properties in typed ActionScript Classes are null.
> In Javascript, uninitiated properties are undefined.
>
> If I’m using strict comparison in cross-compiled ActionScript
> “myObj.someProp === null”, will that cross-compile correctly to Javascript?
>
> Harbs

Reply via email to