* support-test-*.cs: Rename from test-*-p2.cs.
[mono.git] / mcs / class / Microsoft.JScript / Test / Mozilla / ecma_2 / Exceptions / expression-007.js
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /**
3    File Name:          expression-007.js
4    Corresponds To:     11.2.2-2-n.js
5    ECMA Section:       11.2.2. The new operator
6    Description:
7
8
9    Author:             christine@netscape.com
10    Date:               12 november 1997
11 */
12 var SECTION = "expression-007";
13 var VERSION = "JS1_4";
14 var TITLE   = "The new operator";
15
16 startTest();
17 writeHeaderToLog( SECTION + " "+ TITLE);
18
19 var result = "Failed";
20 var exception = "No exception thrown";
21 var expect = "Passed";
22
23 try {
24   UNDEFINED = void 0;
25   result = new UNDEFINED();
26 } catch ( e ) {
27   result = expect;
28   exception = e.toString();
29 }
30
31 new TestCase(
32   SECTION,
33   "UNDEFINED = void 0; result = new UNDEFINED()" +
34   " (threw " + exception +")",
35   expect,
36   result );
37
38 test();
39