]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-013.js
2 File Name: lexical-013.js
3 Corresponds To: 7.4.3-6-n.js
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
11 FutureReservedWord :: one of
12 case debugger export super
13 catch default extends switch
14 class do finally throw
17 Author: christine@netscape.com
18 Date: 12 november 1997
20 var SECTION
= "lexical-013";
21 var VERSION
= "JS1_4";
22 var TITLE
= "Future Reserved Words";
25 writeHeaderToLog( SECTION
+ " "+ TITLE
);
27 var testcases
= new Array();
29 var result
= "Failed";
30 var exception
= "No exception thrown";
31 var expect
= "Passed";
34 eval("default = true;");
37 exception
= e
.toString();
40 testcases
[tc
++] = new TestCase(
43 " (threw " + exception
+")",