tor-browser

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

S15.7.5_A1_T02.js (662B)


      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    Number instances have no special properties beyond those
      7    inherited from the Number prototype object
      8 es5id: 15.7.5_A1_T02
      9 description: Checking property toString
     10 ---*/
     11 assert.sameValue(
     12  (new Number()).hasOwnProperty("toString"),
     13  false,
     14  '(new Number()).hasOwnProperty("toString") must return false'
     15 );
     16 
     17 assert.sameValue(
     18  (new Number()).toString,
     19  Number.prototype.toString,
     20  'The value of (new Number()).toString is expected to equal the value of Number.prototype.toString'
     21 );
     22 
     23 reportCompare(0, 0);