tor-browser

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

S9.3.1_A6_T1.js (914B)


      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    The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
      7    (a value so large that it will round to <b><tt>+&infin;</tt></b>)
      8 es5id: 9.3.1_A6_T1
      9 description: >
     10    Compare Number('Infinity') with Number.POSITIVE_INFINITY,
     11    10e10000, 10E10000 and Number("10e10000")
     12 ---*/
     13 assert.sameValue(Number("Infinity"), Number.POSITIVE_INFINITY, 'Number("Infinity") returns Number.POSITIVE_INFINITY');
     14 assert.sameValue(Number("Infinity"), 10e10000, 'Number("Infinity") must return 10e10000');
     15 assert.sameValue(Number("Infinity"), 10E10000, 'Number("Infinity") must return 10E10000');
     16 
     17 assert.sameValue(
     18  Number("Infinity"),
     19  10e10000,
     20  'Number("Infinity") must return the same value returned by Number("10e10000")'
     21 );
     22 
     23 reportCompare(0, 0);