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