tor-browser

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

regress-350650-n.js (906B)


      1 // |reftest| skip-if(Android)
      2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 //-----------------------------------------------------------------------------
      8 var BUGNUMBER = 350650;
      9 var summary = 'js reports "uncaught exception';
     10 var actual = 'Error';
     11 var expect = 'Error';
     12 
     13 expectExitCode(3);
     14 
     15 //-----------------------------------------------------------------------------
     16 test();
     17 //-----------------------------------------------------------------------------
     18 
     19 function test()
     20 {
     21  printBugNumber(BUGNUMBER);
     22  printStatus (summary);
     23 
     24  function exc() { this.toString = function() { return "EXC"; } }
     25  throw new exc();
     26 
     27  reportCompare(expect, actual, summary);
     28 }