2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/sourceMapValidationTryCatchFinally.ts ===
|
|
|
|
var x = 10;
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
try {
|
|
|
|
x = x + 1;
|
|
|
|
>x = x + 1 : number
|
|
|
|
>x : number
|
|
|
|
>x + 1 : number
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
>e : any
|
|
|
|
|
|
|
|
x = x - 1;
|
|
|
|
>x = x - 1 : number
|
|
|
|
>x : number
|
|
|
|
>x - 1 : number
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
x = x * 10;
|
|
|
|
>x = x * 10 : number
|
|
|
|
>x : number
|
|
|
|
>x * 10 : number
|
|
|
|
>x : number
|
|
|
|
}
|
|
|
|
try
|
|
|
|
{
|
|
|
|
x = x + 1;
|
|
|
|
>x = x + 1 : number
|
|
|
|
>x : number
|
|
|
|
>x + 1 : number
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
throw new Error();
|
|
|
|
>new Error() : Error
|
2014-10-29 05:21:47 +01:00
|
|
|
>Error : ErrorConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
catch (e)
|
|
|
|
>e : any
|
|
|
|
{
|
|
|
|
x = x - 1;
|
|
|
|
>x = x - 1 : number
|
|
|
|
>x : number
|
|
|
|
>x - 1 : number
|
|
|
|
>x : number
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
x = x * 10;
|
|
|
|
>x = x * 10 : number
|
|
|
|
>x : number
|
|
|
|
>x * 10 : number
|
|
|
|
>x : number
|
|
|
|
}
|