2014-07-13 01:04:16 +02:00
|
|
|
//// [scopingInCatchBlocks.ts]
|
|
|
|
try { } catch(ex1) {
|
|
|
|
throw ex1;
|
|
|
|
}
|
|
|
|
|
|
|
|
try { } catch(ex1) { } // should not error
|
|
|
|
|
|
|
|
try { } catch(ex1) { } // should not error
|
|
|
|
|
|
|
|
var x = ex1; // should error
|
|
|
|
|
|
|
|
|
|
|
|
//// [scopingInCatchBlocks.js]
|
2015-02-07 03:45:09 +01:00
|
|
|
try { }
|
2014-07-13 01:04:16 +02:00
|
|
|
catch (ex1) {
|
|
|
|
throw ex1;
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
try { }
|
|
|
|
catch (ex1) { } // should not error
|
|
|
|
try { }
|
|
|
|
catch (ex1) { } // should not error
|
2014-08-15 22:18:54 +02:00
|
|
|
var x = ex1; // should error
|