]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-049.js
3 Corresponds To: 7.8.1-1.js
4 ECMA Section: 7.8.1 Rules of Automatic Semicolon Insertioin
6 Author: christine@netscape.com
7 Date: 15 september 1997
9 var SECTION
= "lexical-049";
10 var VERSION
= "JS1_4";
11 var TITLE
= "The Rules of Automatic Semicolon Insertion";
14 writeHeaderToLog( SECTION
+ " "+ TITLE
);
17 var testcases
= new Array();
19 var result
= "Failed";
20 var exception
= "No exception thrown";
21 var expect
= "Passed";
25 eval("for ( counter = 0\n"
29 + "result += \": got inside for loop\";\n"
34 exception
= e
.toString();
37 testcases
[tc
++] = new TestCase(
39 "line breaks within a for expression" +
40 " (threw " + exception
+")",