Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Date/UTC/S15.9.4.3_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 esid: sec-date.utc
6 info: |
7 The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum }
8 attributes
9 es5id: 15.9.4.3_A3_T3
10 description: Checking DontEnum attribute
11 ---*/
12
13 if (Date.UTC.propertyIsEnumerable('length')) {
14 $ERROR('#1: The Date.UTC.length property has the attribute DontEnum');
15 }
16
17 for (var x in Date.UTC) {
18 if (x === "length") {
19 $ERROR('#2: The Date.UTC.length has the attribute DontEnum');
20 }
21 }