The WHLSL specification states that the boolean operations && and || should support short-circuiting, i.e. in e1 && e2, e2 is only evaluated if e1 evaluates to true, and in e1 || e2, e2 is only evaluated if e1 evaluates to false. Currently the interpreter doesn't adhere to this behavior and evaluates both operands as && and || are implemented as functions that take a pair of boolean arguments.
Created attachment 345320 [details] Patch
Comment on attachment 345320 [details] Patch Clearing flags on attachment: 345320 Committed r234001: <https://trac.webkit.org/changeset/234001>
All reviewed patches have been landed. Closing bug.
<rdar://problem/42398027>
*** Bug 186773 has been marked as a duplicate of this bug. ***