| 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: The length property of decodeURIComponent has the attribute ReadOnly |
| 6 |
es5id: 15.1.3.2_A5.3 |
| 7 |
es6id: 18.2.6.3 |
| 8 |
esid: sec-decodeuricomponent-encodeduricomponent |
| 9 |
description: Checking if varying the length property fails |
| 10 |
includes: [propertyHelper.js] |
| 11 |
---*/ |
| 12 |
|
| 13 |
//CHECK#1 |
| 14 |
var x = decodeURIComponent.length; |
| 15 |
verifyNotWritable(decodeURIComponent, "length", null, Infinity); |
| 16 |
if (decodeURIComponent.length !== x) { |
| 17 |
$ERROR('#1: x = decodeURIComponent.length; decodeURIComponent.length = Infinity; decodeURIComponent.length === x. Actual: ' + (decodeURIComponent.length)); |
| 18 |
} |