2 * File Name: exception-002
4 * Description: Tests for JavaScript Standard Exceptions
8 * Author: christine@netscape.com
11 var SECTION = "exception-002";
12 var VERSION = "js1_4";
13 var TITLE = "Tests for JavaScript Standard Exceptions: ConstructError";
16 writeHeaderToLog( SECTION + " "+ TITLE);
19 var testcases = new Array();
25 function Construct_1() {
26 result = "failed: no exception thrown";
32 result = "passed: threw exception",
33 exception = e.toString();
35 testcases[tc++] = new TestCase(
37 "new Math() [ exception is " + exception +" ]",
38 "passed: threw exception",