]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-027.js
2 File Name: lexical-027.js
3 Corresponds To: 7.4.2-4-n.js
7 The following tokens are ECMAScript keywords and may not be used as
8 identifiers in ECMAScript programs.
16 continue function return void
20 This test verifies that the keyword cannot be used as an identifier.
21 Functioinal tests of the keyword may be found in the section corresponding
22 to the function of the keyword.
24 Author: christine@netscape.com
25 Date: 12 november 1997
28 var SECTION
= "lexical-027";
29 var VERSION
= "JS1_4";
30 var TITLE
= "Keywords";
33 writeHeaderToLog( SECTION
+ " "+ TITLE
);
36 var testcases
= new Array();
38 var result
= "Failed";
39 var exception
= "No exception thrown";
40 var expect
= "Passed";
46 exception
= e
.toString();
49 testcases
[tc
++] = new TestCase(
52 " (threw " + exception
+")",