* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Microsoft.JScript / Test / Mozilla / ecma_2 / Exceptions / lexical-023.js
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /**
3    File Name:          lexical-023.js
4    Corresponds To:     7.4.3-16-n.js
5    ECMA Section:       7.4.3
6    Description:
7    The following words are used as keywords in proposed extensions and are
8    therefore reserved to allow for the possibility of future adoption of
9    those extensions.
10
11    FutureReservedWord :: one of
12    case    debugger    export      super
13    catch   default     extends     switch
14    class   do          finally     throw
15    const   enum        import      try
16
17    Author:             christine@netscape.com
18    Date:               12 november 1997
19 */
20 var SECTION = "lexical-023.js";
21 var VERSION = "ECMA_1";
22 var TITLE   = "Future Reserved Words";
23
24 startTest();
25 writeHeaderToLog( SECTION + " "+ TITLE);
26
27 var result = "Failed";
28 var exception = "No exception thrown";
29 var expect = "Passed";
30
31 try {
32   eval("try = true;");
33 } catch ( e ) {
34   result = expect;
35   exception = e.toString();
36 }
37
38 new TestCase(
39   SECTION,
40   "try = true" +
41   " (threw " + exception +")",
42   expect,
43   result );
44
45 test();
46
47