tor-browser

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

newtarget-is-undefined.js (877B)


      1 // |reftest| shell-option(--enable-explicit-resource-management) skip-if(!(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('explicit-resource-management'))||!xulRuntime.shell) -- explicit-resource-management is not enabled unconditionally, requires shell-options
      2 // Copyright (C) 2023 Ron Buckton. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-suppressederror-constructor
      7 description: >
      8  NewTarget is undefined
      9 info: |
     10  SuppressedError ( error, suppressed, message )
     11 
     12  1. If NewTarget is undefined, let newTarget be the active function object, else let newTarget be NewTarget.
     13 
     14 features: [explicit-resource-management]
     15 ---*/
     16 
     17 var obj = SuppressedError();
     18 
     19 assert.sameValue(Object.getPrototypeOf(obj), SuppressedError.prototype);
     20 assert(obj instanceof SuppressedError);
     21 
     22 reportCompare(0, 0);