tor-browser

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

S12.14_A18_T1.js (413B)


      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: Catching objects with try/catch/finally statement
      6 es5id: 12.14_A18_T1
      7 description: Catching undefined
      8 ---*/
      9 
     10 // CHECK#1
     11 try{
     12  throw undefined;
     13 }
     14 catch(e){
     15  if (e!==undefined) throw new Test262Error('#1: Exception === undefined. Actual: '+e);
     16 }
     17 
     18 reportCompare(0, 0);