2
File Name: lexical-051.js
3
Corresponds to: 7.8.2-3-n.js
4
ECMA Section: 7.8.2 Examples of Automatic Semicolon Insertion
5
Description: compare some specific examples of the automatic
6
insertion rules in the EMCA specification.
7
Author: christine@netscape.com
8
Date: 15 september 1997
11
var SECTION = "lexical-051";
12
var VERSION = "JS1_4";
13
var TITLE = "Examples of Automatic Semicolon Insertion";
16
writeHeaderToLog( SECTION + " "+ TITLE);
19
var testcases = new Array();
21
var result = "Failed";
22
var exception = "No exception thrown";
23
var expect = "Passed";
26
eval("for (a; b\n) result += \": got to inner loop\";")
29
exception = e.toString();
32
testcases[tc++] = new TestCase(
35
" (threw " + exception +")",