adds test for try-catch-finally

This commit is contained in:
Tingan Ho 2017-07-30 11:32:17 +02:00
parent de38ef74a4
commit 58c8a2c03d
4 changed files with 12 additions and 1 deletions

View file

@ -6,6 +6,8 @@ function fn() {
try { } finally { }
try { } catch { } finally { }
try { } catch(z) { } finally { }
}
@ -20,6 +22,9 @@ function fn() {
try { }
finally { }
try { }
catch (_ignoredCatchParameter) { }
finally { }
try { }
catch (z) { }
finally { }
}

View file

@ -10,6 +10,8 @@ function fn() {
try { } finally { }
try { } catch { } finally { }
try { } catch(z) { } finally { }
>z : Symbol(z, Decl(tryStatements.ts, 7, 18))
>z : Symbol(z, Decl(tryStatements.ts, 9, 18))
}

View file

@ -10,6 +10,8 @@ function fn() {
try { } finally { }
try { } catch { } finally { }
try { } catch(z) { } finally { }
>z : any
}

View file

@ -6,5 +6,7 @@ function fn() {
try { } finally { }
try { } catch { } finally { }
try { } catch(z) { } finally { }
}