blob: 95515106563f94ee30a5279cf3a5e9ca053e4177 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The Date.prototype property "getTimezoneOffset" has { DontEnum }
attributes
description: Checking absence of DontDelete attribute
includes: [$FAIL.js]
---*/
if (delete Date.prototype.getTimezoneOffset === false) {
$ERROR('#1: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete');
}
if (Date.prototype.hasOwnProperty('getTimezoneOffset')) {
$FAIL('#2: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete');
}
|