| // 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 "getUTCMilliseconds" has { DontEnum } |
| attributes |
| esid: sec-date.prototype.getutcmilliseconds |
| description: Checking absence of ReadOnly attribute |
| ---*/ |
| |
| var x = Date.prototype.getUTCMilliseconds; |
| if (x === 1) |
| Date.prototype.getUTCMilliseconds = 2; |
| else |
| Date.prototype.getUTCMilliseconds = 1; |
| if (Date.prototype.getUTCMilliseconds === x) { |
| $ERROR('#1: The Date.prototype.getUTCMilliseconds has not the attribute ReadOnly'); |
| } |