]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-010.js
2 File Name: expression-010.js
3 Corresponds To: 11.2.2-5-n.js
4 ECMA Section: 11.2.2. The new operator
6 Author: christine@netscape.com
9 var SECTION
= "expression-010";
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 NUMBER();
29 exception
= e
.toString();
32 testcases
[tc
++] = new TestCase(
34 "NUMBER=0, result = new NUMBER()" +
35 " (threw " + exception
+")",