]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-048.js
2 File Name: lexical-048.js
3 Corresponds To: 7.8.1-1.js
4 ECMA Section: 7.8.1 Rules of Automatic Semicolon Insertion
6 Author: christine@netscape.com
7 Date: 15 september 1997
10 var SECTION
= "lexical-048";
11 var VERSION
= "JS1_4";
12 var TITLE
= "The Rules of Automatic Semicolon Insertion";
15 writeHeaderToLog( SECTION
+ " "+ TITLE
);
18 var testcases
= new Array();
20 var result
= "Failed";
21 var exception
= "No exception thrown";
22 var expect
= "Passed";
26 eval( "for ( counter = 0;\ncounter <= 1\ncounter++ ) {\nresult += \": got inside for loop\")");
29 exception
= e
.toString();
32 testcases
[tc
++] = new TestCase(
34 "line breaks within a for expression" +
35 " (threw " + exception
+")",