mirror of https://github.com/tc39/test262.git
16 lines
506 B
JavaScript
16 lines
506 B
JavaScript
// 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.getUTCDate property "length" has { ReadOnly,
|
|
DontDelete, DontEnum } attributes
|
|
description: Checking ReadOnly attribute
|
|
---*/
|
|
|
|
x = Date.prototype.getUTCDate.length;
|
|
Date.prototype.getUTCDate.length = 1;
|
|
if (Date.prototype.getUTCDate.length !== x) {
|
|
$ERROR('#1: The Date.prototype.getUTCDate.length has the attribute ReadOnly');
|
|
}
|