2 File Name: expressions-003.js
3 Corresponds to: ecma/Expressions/11.2.1-3-n.js
4 ECMA Section: 11.2.1 Property Accessors
7 Try to access properties of an object whose value is undefined.
9 Author: christine@netscape.com
10 Date: 09 september 1998
12 var SECTION = "expressions-003.js";
13 var VERSION = "JS1_4";
14 var TITLE = "Property Accessors";
15 writeHeaderToLog( SECTION + " "+TITLE );
20 var testcases = new Array();
22 // try to access properties of primitive types
24 OBJECT = new Property( "undefined", void 0, "undefined", NaN );
26 var result = "Failed";
27 var exception = "No exception thrown";
28 var expect = "Passed";
31 result = OBJECT.value.toString();
34 exception = e.toString();
38 testcases[tc++] = new TestCase(
40 "Get the toString value of an object whose value is undefined "+
41 "(threw " + exception +")",
47 function Property( object, value, string, number ) {
49 this.string = String(value);
50 this.number = Number(value);