]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-006.js
2 File Name: expression-006.js
3 Corresponds to: 11.2.2-1-n.js
4 ECMA Section: 11.2.2. The new operator
7 http://scopus/bugsplat/show_bug.cgi?id=327765
9 Author: christine@netscape.com
10 Date: 12 november 1997
12 var SECTION
= "expression-006.js";
13 var VERSION
= "JS1_4";
14 var TITLE
= "The new operator";
15 var BUGNUMBER
="327765";
18 writeHeaderToLog( SECTION
+ " "+ TITLE
);
21 var testcases
= new Array();
23 var result
= "Failed";
24 var exception
= "No exception thrown";
25 var expect
= "Passed";
28 var OBJECT
= new Object();
29 result
= new OBJECT();
32 exception
= e
.toString();
35 testcases
[tc
++] = new TestCase(
37 "OBJECT = new Object; result = new OBJECT()" +
38 " (threw " + exception
+")",