]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/expression-013.js
2 File Name: expression-013.js
3 Corresponds To: ecma/Expressions/11.2.2-8-n.js
4 ECMA Section: 11.2.2. The new operator
6 Author: christine@netscape.com
9 var SECTION
= "expression-013";
10 var VERSION
= "JS1_4";
11 var TITLE
= "The new operator";
12 var BUGNUMBER
= "327765";
15 writeHeaderToLog( SECTION
+ " "+ TITLE
);
18 var testcases
= new Array();
20 var NUMBER
= new Number(1);
22 var result
= "Failed";
23 var exception
= "No exception thrown";
24 var expect
= "Passed";
27 result
= new NUMBER();
30 exception
= e
.toString();
33 testcases
[tc
++] = new TestCase(
35 "NUMBER = new Number(1); result = new NUMBER()" +
36 " (threw " + exception
+")",