| Corresponds To: 15.9.5.23-3-n.js |
| Description: Date.prototype.setTime |
| 1. If the this value is not a Date object, generate a runtime error. |
| 3. Call TimeClip(Result(1)). |
| 4. Set the [[Value]] property of the this value to Result(2). |
| 5. Return the value of the [[Value]] property of the this value. |
| Author: christine@netscape.com |
| var SECTION = "date-002"; |
| var TITLE = "Date.prototype.setTime()"; |
| writeHeaderToLog( SECTION + " "+ TITLE); |
| var testcases = new Array(); |
| var exception = "No exception thrown"; |
| var MYDATE = new MyDate(); |
| result = MYDATE.setTime(0); |
| exception = e.toString(); |
| testcases[tc++] = new TestCase( |
| "MYDATE = new MyDate(); MYDATE.setTime(0)" + |
| " (threw " + exception +")", |
| this.setTime = Date.prototype.setTime; |