2
File Name: lexical-006.js
3
Corresponds To: 7.4.2-1.js
7
The following tokens are ECMAScript keywords and may not be used as
8
identifiers in ECMAScript programs.
14
continue function return void
18
This test verifies that the keyword cannot be used as an identifier.
19
Functioinal tests of the keyword may be found in the section corresponding
20
to the function of the keyword.
22
Author: christine@netscape.com
23
Date: 12 november 1997
26
var SECTION = "lexical-006";
27
var VERSION = "JS1_4";
28
var TITLE = "Keywords";
31
writeHeaderToLog( SECTION + " "+ TITLE);
34
var testcases = new Array();
36
var result = "Failed";
37
var exception = "No exception thrown";
38
var expect = "Passed";
41
eval("break = new Object();");
44
exception = e.toString();
47
testcases[tc++] = new TestCase(
49
"break = new Object()" +
50
" (threw " + exception +")",