blob: 3b7bdcf40d463feae1dd615f6df0d2fbf764352b [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 "toDateString" has { DontEnum } attributes
esid: sec-date.prototype.todatestring
description: Checking DontEnum attribute
---*/
if (Date.prototype.propertyIsEnumerable('toDateString')) {
$ERROR('#1: The Date.prototype.toDateString property has the attribute DontEnum');
}
for (var x in Date.prototype) {
if (x === "toDateString") {
$ERROR('#2: The Date.prototype.toDateString has the attribute DontEnum');
}
}