tor-browser

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

is-error-object.js (527B)


      1 // Copyright (C) 2015 André Bargull. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es6id: 19.5.6.4
      6 description: >
      7  RangeError instances have an [[ErrorData]] internal slot.
      8 info: |
      9  NativeError instances are ordinary objects that inherit properties
     10  from their NativeError prototype object and have an [[ErrorData]]
     11  internal slot whose value is undefined
     12 ---*/
     13 
     14 assert.sameValue(Object.prototype.toString.call(new RangeError), "[object Error]");
     15 
     16 reportCompare(0, 0);