Re: [SCXML] Incorrect and invalid ecmascript condition in IR test 459
David Junger <[email protected]> Mon, 28 Dec 2015 21:06:20 +0100
| Newsgroups | gmane.comp.web.voice |
|---|---|
| Message-ID | <[email protected]> |
Le 28 d=C3=A9c. 2015 =C3=A0 17:18, Ate Douma <[email protected]> a =C3=A9crit = : >=20 > I've just noticed an error in Implementation Report test 459 = (ecmascript). >=20 > This test contains the incorrect (and invalid!) ecmascript condition: >=20 > "Var4=3D=3D0 | Var3 !=3D 2". It=E2=80=99s not technically invalid, and it=E2=80=99s not functionally = broken either, although probably by accident. =E2=80=98|=E2=80=99 is a bitwise OR, has lower priority than comparison = operators, and, when its operands are booleans (which they are here), it = coerces them to 0 or 1 and so the result is 0 or 1, which is coerced = back to the expected boolean. David=