]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-023.js
2 File Name: lexical-023.js
3 Corresponds To: 7.4.3-16-n.js
6 The following words are used as keywords in proposed extensions and are
7 therefore reserved to allow for the possibility of future adoption of
10 FutureReservedWord :: one of
11 case debugger export super
12 catch default extends switch
13 class do finally throw
16 Author: christine@netscape.com
17 Date: 12 november 1997
19 var SECTION
= "lexical-023.js";
20 var VERSION
= "ECMA_1";
21 var TITLE
= "Future Reserved Words";
24 writeHeaderToLog( SECTION
+ " "+ TITLE
);
27 var testcases
= new Array();
29 var result
= "Failed";
30 var exception
= "No exception thrown";
31 var expect
= "Passed";
37 exception
= e
.toString();
40 testcases
[tc
++] = new TestCase(
43 " (threw " + exception
+")",