| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: The Date property "parse" has { DontEnum } attributes |
| 6 |
esid: sec-date.parse |
| 7 |
es5id: 15.9.4.2_A1_T3 |
| 8 |
description: Checking DontEnum attribute |
| 9 |
---*/ |
| 10 |
|
| 11 |
if (Date.propertyIsEnumerable('parse')) { |
| 12 |
$ERROR('#1: The Date.parse property has the attribute DontEnum'); |
| 13 |
} |
| 14 |
|
| 15 |
for (var x in Date) { |
| 16 |
if (x === "parse") { |
| 17 |
$ERROR('#2: The Date.parse has the attribute DontEnum'); |
| 18 |
} |
| 19 |
} |