TypeScript/tests/baselines/reference/scopingInCatchBlocks.js
2015-02-06 18:45:09 -08:00

23 lines
387 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) { } // should not error
try { }
catch (ex1) { } // should not error
var x = ex1; // should error