Untyped variables are undefined by default. ActionScript does automatic coercion when a variable is typed, so it becomes null for String or Object, NaN for Number, or 0 for uint/int. Currently, this automatic coercion is lost during cross-compilation.
On Wed, Feb 10, 2016 at 4: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