]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-009.js
2aa63b6a6d5074599b28a11d173a303cfb80bff4
   2     File Name:          expression-009 
   3     Corresponds to:     ecma/Expressions/11.2.2-4-n.js 
   4     ECMA Section:       11.2.2. The new operator 
   6     Author:             christine@netscape.com 
   9     var SECTION 
= "expression-009"; 
  10     var VERSION 
= "JS1_4"; 
  11     var TITLE   
= "The new operator"; 
  14     writeHeaderToLog( SECTION 
+ " "+ TITLE
); 
  17     var testcases 
= new Array(); 
  21     var result 
= "Failed"; 
  22     var exception 
= "No exception thrown"; 
  23     var expect 
= "Passed"; 
  26         result 
= new STRING(); 
  29         exception 
= e
.toString(); 
  32     testcases
[tc
++] = new TestCase( 
  34         "STRING = ''; result = new STRING()" + 
  35         " (threw " + exception 
+")",