tor-browser

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

S12.13_A1.js (445B)


      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: Sanity test for throw statement
      6 es5id: 12.13_A1
      7 description: Trying to throw exception with "throw"
      8 ---*/
      9 
     10 var inCatch = false;
     11 
     12 try {
     13  throw "expected_message";
     14 } catch (err) {
     15  assert.sameValue(err, "expected_message");
     16  inCatch = true;
     17 }
     18 
     19 assert.sameValue(inCatch, true);
     20 
     21 reportCompare(0, 0);