tor-browser

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

S12.14_A18_T2.js (392B)


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