tor-browser

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

MAX_SAFE_INTEGER.js (903B)


      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 description: Property descriptor for `Number.MAX_SAFE_INTEGER`
      5 esid: sec-number.max_safe_integer
      6 info: |
      7    The value of Number.MAX_SAFE_INTEGER is 9007199254740991
      8 
      9    This property has the attributes { [[Writable]]: false, [[Enumerable]]:
     10    false, [[Configurable]]: false }.
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 var desc = Object.getOwnPropertyDescriptor(Number, 'MAX_SAFE_INTEGER');
     15 
     16 assert.sameValue(desc.set, undefined, 'Does not define a `get` accessor');
     17 assert.sameValue(desc.get, undefined, 'Does not define a `set` accessor');
     18 assert.sameValue(desc.value, 9007199254740991);
     19 
     20 verifyNotEnumerable(Number, 'MAX_SAFE_INTEGER');
     21 verifyNotWritable(Number, 'MAX_SAFE_INTEGER');
     22 verifyNotConfigurable(Number, 'MAX_SAFE_INTEGER');
     23 
     24 reportCompare(0, 0);