43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
=== 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))
|
|
}
|