tor-browser

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

applying-the-exp-operator_A21.js (621B)


      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 description: If base is −0 and exponent < 0 and exponent is an odd integer, the result is −∞.
      6 esid: sec-applying-the-exp-operator
      7 ---*/
      8 
      9 
     10 var base = -0;
     11 var exponent = new Array();
     12 exponent[2] = -1;
     13 exponent[1] = -111;
     14 exponent[0] = -111111;
     15 var exponentnum = 3;
     16 
     17 for (var i = 0; i < exponentnum; i++) {
     18  if (Math.pow(base, exponent[i]) !== -Infinity) {
     19    throw new Test262Error("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
     20  }
     21 }
     22 
     23 reportCompare(0, 0);