tor-browser

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

S12.2_A6_T2.js (978B)


      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: VariableDeclaration within "try-catch" statement is allowed
      6 es5id: 12.2_A6_T2
      7 description: Declaring variables within "try-catch" statement
      8 ---*/
      9 
     10 //////////////////////////////////////////////////////////////////////////////
     11 //CHECK#1
     12 try{
     13 intry__intry__var=intry__intry__var;
     14 intry__incatch__var=intry__incatch__var;
     15 incatch__intry__var=incatch__intry__var;
     16 incatch__incatch__var=incatch__incatch__var;
     17 }catch(e){
     18 throw new Test262Error('#1: Variable declaration inside "try-catch" block is admitted');
     19 };
     20 //
     21 //////////////////////////////////////////////////////////////////////////////
     22 
     23 try{
     24    try {
     25    	var intry__intry__var;
     26    } catch (e) {
     27    	var intry__incatch__var;
     28    }
     29 }catch(e){
     30    try {
     31    	var incatch__intry__var;
     32    } catch (e) {
     33        var incatch__incatch__var;
     34    }
     35    
     36 };
     37 
     38 reportCompare(0, 0);