tor-browser

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

applying-the-exp-operator_A10.js (622B)


      1 // Copyright 2016 Rick Waldron.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-applying-the-exp-operator
      6 description: If abs(base) < 1 and exponent is −∞, the result is +∞.
      7 ---*/
      8 
      9 
     10 var exponent = -Infinity;
     11 var bases = [];
     12 bases[0] = 0.999999999999999;
     13 bases[1] = 0.5;
     14 bases[2] = +0;
     15 bases[3] = -0;
     16 bases[4] = -0.5;
     17 bases[5] = -0.999999999999999;
     18 
     19 for (var i = 0; i < bases.length; i++) {
     20  if (Math.pow(bases[i], exponent) !== +Infinity) {
     21    throw new Test262Error("(" + bases[i] + " ** " + exponent + ") !== +Infinity");
     22  }
     23 }
     24 
     25 reportCompare(0, 0);