Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js

raw
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: |
6 The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum }
7 attributes
8 esid: sec-date.parse
9 es5id: 15.9.4.2_A3_T3
10 description: Checking DontEnum attribute
11 ---*/
12
13 if (Date.parse.propertyIsEnumerable('length')) {
14 $ERROR('#1: The Date.parse.length property has the attribute DontEnum');
15 }
16
17 for (var x in Date.parse) {
18 if (x === "length") {
19 $ERROR('#2: The Date.parse.length has the attribute DontEnum');
20 }
21 }