tor-browser

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

S15.7.3.5_A2.js (565B)


      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: Number.NEGATIVE_INFINITY is ReadOnly
      6 es5id: 15.7.3.5_A2
      7 description: Checking if varying Number.NEGATIVE_INFINITY fails
      8 includes: [propertyHelper.js]
      9 ---*/
     10 
     11 // CHECK#1
     12 verifyNotWritable(Number, "NEGATIVE_INFINITY", null, 1);
     13 
     14 assert(
     15  !isFinite(Number.NEGATIVE_INFINITY),
     16  'The value of !isFinite(Number.NEGATIVE_INFINITY) is expected to be true'
     17 );
     18 
     19 // TODO: Convert to verifyProperty() format.
     20 
     21 reportCompare(0, 0);