TypeScript/tests/cases/compiler/sourceMapValidationTryCatchFinally.ts

22 lines
235 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @sourcemap: true
var x = 10;
try {
x = x + 1;
} catch (e) {
x = x - 1;
} finally {
x = x * 10;
}
try
{
x = x + 1;
throw new Error();
}
catch (e)
{
x = x - 1;
}
finally
{
x = x * 10;
}