]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-008.js
2 File Name: expression-008
3 Corresponds To: 11.2.2-3-n.js
4 ECMA Section: 11.2.2. The new operator
6 Author: christine@netscape.com
9 var SECTION
= "expression-008";
10 var VERSION
= "JS1_4";
11 var TITLE
= "The new operator";
14 writeHeaderToLog( SECTION
+ " "+ TITLE
);
17 var testcases
= new Array();
20 var result
= "Failed";
21 var exception
= "No exception thrown";
22 var expect
= "Passed";
28 exception
= e
.toString();
31 testcases
[tc
++] = new TestCase(
33 "NULL = null; result = new NULL()" +
34 " (threw " + exception
+")",