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