/tests/Conformance/15_Native_ECMA_Script_Objects/15.1_The_Global_Object/15.1.3_URI_Handling_Function_Properties/15.1.3.4_encodeURIComponent/S15.1.3.4_A5.3.js
JavaScript | 17 lines | 5 code | 3 blank | 9 comment | 1 complexity | 2c0bc48b1f4a8b7d9e7f3a5928be2fe9 MD5 | raw file
Possible License(s): BSD-3-Clause
- // Copyright 2009 the Sputnik authors. All rights reserved.
- // This code is governed by the BSD license found in the LICENSE file.
- /**
- * @name: S15.1.3.4_A5.3;
- * @section: 15.1.3.4;
- * @assertion: The length property of encodeURIComponent has the attribute ReadOnly;
- * @description: Checking if varying the length property fails;
- */
- //CHECK#1
- x = encodeURIComponent.length;
- encodeURIComponent.length = Infinity;
- if (encodeURIComponent.length !== x) {
- $ERROR('#1: x = encodeURIComponent.length; encodeURIComponent.length = Infinity; encodeURIComponent.length === x. Actual: ' + (encodeURIComponent.length));
- }