blob: b922df5cd1986f64dc6abb591eef6270568e0cc1 [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
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');
}