4 * Description: The if statement
6 * Verify that assignment in the if expression is evaluated correctly.
7 * Verifies the fix for bug http://scopus/bugsplat/show_bug.cgi?id=148822.
9 * Author: christine@netscape.com
10 * Date: 28 August 1998
12 var SECTION = "for-001";
13 var VERSION = "ECMA_2";
14 var TITLE = "The if statement";
15 var BUGNUMBER="148822";
18 writeHeaderToLog( SECTION + " "+ TITLE);
21 var testcases = new Array();
25 var result = "passed";
28 result = "failed: a = b should return 0";
31 testcases[tc++] = new TestCase(
33 "if ( a = b ), where a and b are both equal to 0",