blob: b7fcf0aad37ef91d5e2e512c2b0b65397779deb2 [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 "toLocaleDateString" has { DontEnum }
attributes
esid: sec-date.prototype.tolocaledatestring
description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toLocaleDateString;
if (x === 1)
Date.prototype.toLocaleDateString = 2;
else
Date.prototype.toLocaleDateString = 1;
if (Date.prototype.toLocaleDateString === x) {
$ERROR('#1: The Date.prototype.toLocaleDateString has not the attribute ReadOnly');
}