tor-browser

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

S9.8.1_A7.js (883B)


      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: |
      6    If 1 <= s < 1e21 or -1e21 s < -1 and s has a fractional
      7    component, return the string consisting of the most significant n digits of
      8    the decimal representation of s, followed by a decimal point '.',
      9    followed by the remaining k-n digits of the decimal representation of s
     10 es5id: 9.8.1_A7
     11 description: >
     12    1.0000001 and -1.0000001 convert to String by explicit
     13    transformation
     14 ---*/
     15 
     16 // CHECK#1
     17 if (String(1.0000001) !== "1.0000001") {
     18  throw new Test262Error('#1: String(1.0000001) === "1.0000001". Actual: ' + (String(1.0000001)));
     19 }
     20 
     21 // CHECK#2
     22 if (String(-1.0000001) !== "-1.0000001") {
     23  throw new Test262Error('#2: String(-1.0000001) === "-1.0000001". Actual: ' + (String(-1.0000001)));
     24 }
     25 
     26 reportCompare(0, 0);