2
File Name: expression-004.js
3
Corresponds To: 11.2.1-4-n.js
4
ECMA Section: 11.2.1 Property Accessors
7
Author: christine@netscape.com
8
Date: 09 september 1998
10
var SECTION = "expression-004";
11
var VERSION = "JS1_4";
12
var TITLE = "Property Accessors";
13
writeHeaderToLog( SECTION + " "+TITLE );
17
var testcases = new Array();
19
var OBJECT = new Property( "null", null, "null", 0 );
21
var result = "Failed";
22
var exception = "No exception thrown";
23
var expect = "Passed";
26
result = OBJECT.value.toString();
29
exception = e.toString();
32
testcases[tc++] = new TestCase(
34
"Get the toString value of an object whose value is null "+
35
"(threw " + exception +")",
41
function Property( object, value, string, number ) {
43
this.string = String(value);
44
this.number = Number(value);