1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 File Name: lexical-050.js
4 Corresponds to: 7.8.2-1-n.js
5 ECMA Section: 7.8.2 Examples of Automatic Semicolon Insertion
6 Description: compare some specific examples of the automatic
7 insertion rules in the EMCA specification.
8 Author: christine@netscape.com
9 Date: 15 september 1997
12 var SECTION = "lexical-050";
13 var VERSION = "JS1_4";
14 var TITLE = "Examples of Automatic Semicolon Insertion";
17 writeHeaderToLog( SECTION + " "+ TITLE);
19 var result = "Failed";
20 var exception = "No exception thrown";
21 var expect = "Passed";
27 exception = e.toString();
33 " (threw " + exception +")",