1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 File Name: lexical-031.js
4 Corresponds To: 7.4.2-8-n.js
8 The following tokens are ECMAScript keywords and may not be used as
9 identifiers in ECMAScript programs.
15 continue function return void
19 This test verifies that the keyword cannot be used as an identifier.
20 Functioinal tests of the keyword may be found in the section corresponding
21 to the function of the keyword.
23 Author: christine@netscape.com
24 Date: 12 november 1997
27 var SECTION = "lexical-031";
28 var VERSION = "JS1_4";
29 var TITLE = "Keywords";
32 writeHeaderToLog( SECTION + " "+ TITLE);
34 var result = "Failed";
35 var exception = "No exception thrown";
36 var expect = "Passed";
42 exception = e.toString();
48 " (threw " + exception +")",