]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-012.js
2 File Name: expression-012.js
3 Corresponds To: ecma/Expressions/11.2.2-6-n.js
4 ECMA Section: 11.2.2. The new operator
6 http://scopus/bugsplat/show_bug.cgi?id=327765
7 Author: christine@netscape.com
10 var SECTION
= "expression-012";
11 var VERSION
= "JS1_4";
12 var TITLE
= "The new operator";
13 var BUGNUMBER
= "327765";
16 writeHeaderToLog( SECTION
+ " "+ TITLE
);
19 var testcases
= new Array();
21 var STRING
= new String("hi");
22 var result
= "Failed";
23 var exception
= "No exception thrown";
24 var expect
= "Passed";
27 result
= new STRING();
30 exception
= e
.toString();
33 testcases
[tc
++] = new TestCase(
35 "STRING = new String(\"hi\"); result = new STRING()" +
36 " (threw " + exception
+")",