44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
|
=== tests/cases/compiler/sourceMapValidationTryCatchFinally.ts ===
|
||
|
var x = 10;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
|
||
|
try {
|
||
|
x = x + 1;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
|
||
|
} catch (e) {
|
||
|
>e : Symbol(e, Decl(sourceMapValidationTryCatchFinally.ts, 3, 9))
|
||
|
|
||
|
x = x - 1;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
|
||
|
} finally {
|
||
|
x = x * 10;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
}
|
||
|
try
|
||
|
{
|
||
|
x = x + 1;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
|
||
|
throw new Error();
|
||
|
>Error : Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11))
|
||
|
}
|
||
|
catch (e)
|
||
|
>e : Symbol(e, Decl(sourceMapValidationTryCatchFinally.ts, 13, 7))
|
||
|
{
|
||
|
x = x - 1;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
}
|
||
|
finally
|
||
|
{
|
||
|
x = x * 10;
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
|
||
|
}
|