Hi,

And this particular rabbit hole goes a lot deeper.

Any guesses what these two expression give?
false && undefined
undefined && false

If you expect them to have the same answer you would be incorrect. 

Does this matter? Well try this code on both platforms:

var a:Boolean;
var b:Boolean = false;
var c:Boolean = false;

if ((a && b) != c) {
    trace("True");
}
else {
    trace(“False);
}

You’ll get “False” in the flash player and “True” in JS.

And again this is a simple example the RHS would be a much more complex 
expression that equates to false and you’ll still have this bug.

Thanks,
Justin

Reply via email to