This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
A problem with boolean expression evaluation in 1.4 #11959
Closed
Description
Greetings,
After upgrading to angular 1.4 we're having a problem with expressions like:
true && aMissingObject.aMissingProperty
They evaluate to true, instead of false (incidentally, true && !!aMissingObject.aMissingProperty evaluates to false).
Here is an example on plunkr:
http://plnkr.co/edit/4wVwHOO3lsc10JaSrIXI
Could you please comment if this is expected behaviour?
Many thanks