blob: 4739c7cf1b5c6e9c11e699ba56ee2c533287db8b [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The Date.prototype property "toTimeString" has { DontEnum } attributes
esid: sec-date.prototype.totimestring
es5id: 15.9.5.4_A1_T1
description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toTimeString;
if(x === 1)
Date.prototype.toTimeString = 2;
else
Date.prototype.toTimeString = 1;
if (Date.prototype.toTimeString === x) {
$ERROR('#1: The Date.prototype.toTimeString has not the attribute ReadOnly');
}