tor-browser

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

S15.1.2.4_A2.7.js (442B)


      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: The isNaN property can't be used as constructor
      6 esid: sec-isnan-number
      7 description: >
      8    If property does not implement the internal [[Construct]] method,
      9    throw a TypeError exception
     10 ---*/
     11 
     12 assert.throws(TypeError, () => {
     13  new isNaN();
     14  throw new Test262Error();
     15 });
     16 
     17 reportCompare(0, 0);