]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-007.js
2 File Name: lexical-005.js
3 Corresponds To: 7.4.1-3-n.js
8 Reserved words cannot be used as identifiers.
16 Author: christine@netscape.com
17 Date: 12 november 1997
19 var SECTION
= "lexical-005";
20 var VERSION
= "JS1_4";
21 var TITLE
= "Keywords";
24 writeHeaderToLog( SECTION
+ " "+ TITLE
);
27 var testcases
= new Array();
29 var result
= "Failed";
30 var exception
= "No exception thrown";
31 var expect
= "Passed";
34 eval("false = true;");
37 exception
= e
.toString();
40 testcases
[tc
++] = new TestCase(
43 " (threw " + exception
+")",