| 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_T2 |
| 10 |
description: Checking DontDelete attribute |
| 11 |
---*/ |
| 12 |
|
| 13 |
if (delete Date.parse.length !== true) { |
| 14 |
$ERROR('#1: The Date.parse.length property does not have the attributes DontDelete'); |
| 15 |
} |
| 16 |
|
| 17 |
if (Date.parse.hasOwnProperty('length')) { |
| 18 |
$ERROR('#2: The Date.parse.length property does not have the attributes DontDelete'); |
| 19 |
} |