tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S15.1.3.2_A5.3.js (706B)


      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 esid: sec-decodeuricomponent-encodeduricomponent
      7 description: Checking if varying the length property fails
      8 includes: [propertyHelper.js]
      9 ---*/
     10 
     11 //CHECK#1
     12 var x = decodeURIComponent.length;
     13 verifyNotWritable(decodeURIComponent, "length", null, Infinity);
     14 if (decodeURIComponent.length !== x) {
     15  throw new Test262Error('#1: x = decodeURIComponent.length; decodeURIComponent.length = Infinity; decodeURIComponent.length === x. Actual: ' + (decodeURIComponent.length));
     16 }
     17 
     18 reportCompare(0, 0);