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