]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-014.js
2 File Name: expression-014.js
3 Corresponds To: ecma/Expressions/11.2.2-9-n.js
4 ECMA Section: 11.2.2. The new operator
7 Author: christine@netscape.com
10 var SECTION
= "expression-014.js";
11 var VERSION
= "ECMA_1";
12 var TITLE
= "The new operator";
13 var BUGNUMBER
= "327765";
16 writeHeaderToLog( SECTION
+ " "+ TITLE
);
19 var testcases
= new Array();
21 var BOOLEAN
= new Boolean();
24 var result
= "Failed";
25 var exception
= "No exception thrown";
26 var expect
= "Passed";
29 result
= new BOOLEAN();
32 exception
= e
.toString();
35 testcases
[tc
++] = new TestCase(
37 "BOOLEAN = new Boolean(); result = new BOOLEAN()" +
38 " (threw " + exception
+")",