Home | History | Annotate | Download | only in Exceptions
      1 /**
      2     File Name:          lexical-003.js
      3     Corresponds To:     7.3-13-n.js
      4     ECMA Section:       7.3 Comments
      5     Description:
      6 
      7     Author:             christine (at) netscape.com
      8     Date:               12 november 1997
      9 
     10 */
     11     var SECTION = "lexical-003.js";
     12     var VERSION = "JS1_4";
     13     var TITLE   = "Comments";
     14 
     15     startTest();
     16     writeHeaderToLog( SECTION + " "+ TITLE);
     17 
     18     var tc = 0;
     19     var testcases = new Array();
     20 
     21 
     22     var result = "Failed";
     23     var exception = "No exception thrown";
     24     var expect = "Passed";
     25 
     26     try {
     27         eval("/*\n/* nested comment */\n*/\n");
     28     } catch ( e ) {
     29         result = expect;
     30         exception = e.toString();
     31     }
     32 
     33     testcases[tc++] = new TestCase(
     34         SECTION,
     35         "/*/*nested comment*/ */" +
     36         " (threw " + exception +")",
     37         expect,
     38         result );
     39 
     40     test();
     41 
     42