Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.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_T1
10 description: Checking ReadOnly attribute
11 includes: [propertyHelper.js]
12 ---*/
13
14 var x = Date.UTC.length;
15 verifyNotWritable(Date.UTC, "length", null, 1);
16 if (Date.UTC.length !== x) {
17 $ERROR('#1: The Date.UTC.length has the attribute ReadOnly');
18 }