27 lines
336 B
JavaScript
27 lines
336 B
JavaScript
//// [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]
|
|
try {
|
|
}
|
|
catch (ex1) {
|
|
throw ex1;
|
|
}
|
|
try {
|
|
}
|
|
catch (ex1) {
|
|
}
|
|
try {
|
|
}
|
|
catch (ex1) {
|
|
}
|
|
var x = ex1;
|