Debian Codegraph @

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