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