tor-browser

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

infinity.js (504B)


      1 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-number.isfinite
      6 description: >
      7  Return false if argument is Infinity or -Infinity
      8 info: |
      9  Number.isFinite ( number )
     10 
     11  [...]
     12  2. If number is NaN, +∞, or -∞, return false.
     13  [...]
     14 ---*/
     15 
     16 assert.sameValue(Number.isFinite(Infinity), false, "+Infinity");
     17 assert.sameValue(Number.isFinite(-Infinity), false, "-Infinity");
     18 
     19 reportCompare(0, 0);