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