mirror of https://github.com/tc39/test262.git
18 lines
667 B
JavaScript
18 lines
667 B
JavaScript
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||
|
|
||
|
/**
|
||
|
* The Date.prototype.getMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes
|
||
|
*
|
||
|
* @path 15_Native/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T1.js
|
||
|
* @description Checking ReadOnly attribute
|
||
|
*/
|
||
|
|
||
|
x = Date.prototype.getMilliseconds.length;
|
||
|
Date.prototype.getMilliseconds.length = 1;
|
||
|
if (Date.prototype.getMilliseconds.length !== x) {
|
||
|
$ERROR('#1: The Date.prototype.getMilliseconds.length has the attribute ReadOnly');
|
||
|
}
|
||
|
|
||
|
|