blob: 722e801736b88a3a056194dd7f3215853b9b169c [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.toTimeString property "length" has { ReadOnly,
DontDelete, DontEnum } attributes
esid: sec-date.prototype.totimestring
description: Checking ReadOnly attribute
includes: [propertyHelper.js]
---*/
var x = Date.prototype.toTimeString.length;
verifyNotWritable(Date.prototype.toTimeString, "length", null, 1);
if (Date.prototype.toTimeString.length !== x) {
$ERROR('#1: The Date.prototype.toTimeString.length has the attribute ReadOnly');
}