tor-browser

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

S15.1.3.3_A5.7.js (648B)


      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 encodeURI property can't be used as constructor
      6 esid: sec-encodeuri-uri
      7 description: >
      8    If property does not implement the internal [[Construct]] method,
      9    throw a TypeError exception
     10 ---*/
     11 
     12 //CHECK#1
     13 
     14 try {
     15  new encodeURI();
     16  throw new Test262Error('#1.1: new encodeURI() throw TypeError. Actual: ' + (new encodeURI()));
     17 } catch (e) {
     18  if ((e instanceof TypeError) !== true) {
     19    throw new Test262Error('#1.2: new encodeURI() throw TypeError. Actual: ' + (e));
     20  }
     21 }
     22 
     23 reportCompare(0, 0);