1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 File Name: expression-010.js
4 Corresponds To: 11.2.2-5-n.js
5 ECMA Section: 11.2.2. The new operator
7 Author: christine@netscape.com
10 var SECTION = "expression-010";
11 var VERSION = "JS1_4";
12 var TITLE = "The new operator";
15 writeHeaderToLog( SECTION + " "+ TITLE);
19 var result = "Failed";
20 var exception = "No exception thrown";
21 var expect = "Passed";
24 result = new NUMBER();
27 exception = e.toString();
32 "NUMBER=0, result = new NUMBER()" +
33 " (threw " + exception +")",