]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/lexical-034.js
   2     File Name:          7.4.2-11-n.js 
   6     The following tokens are ECMAScript keywords and may not be used as 
   7     identifiers in ECMAScript programs. 
  13      continue       function    return      void 
  17     This test verifies that the keyword cannot be used as an identifier. 
  18     Functioinal tests of the keyword may be found in the section corresponding 
  19     to the function of the keyword. 
  21     Author:             christine@netscape.com 
  22     Date:               12 november 1997 
  25     var SECTION 
= "lexical-034"; 
  26     var VERSION 
= "JS1_4"; 
  27     var TITLE   
= "Keywords"; 
  30     writeHeaderToLog( SECTION 
+ " "+ TITLE
); 
  33     var testcases 
= new Array(); 
  35     var result 
= "Failed"; 
  36     var exception 
= "No exception thrown"; 
  37     var expect 
= "Passed"; 
  43         exception 
= e
.toString(); 
  46     testcases
[tc
++] = new TestCase( 
  49         " (threw " + exception 
+")",