[JS IR BE] Support try-catch-finally in new backend

This commit is contained in:
Roman Artemev
2018-06-13 16:59:31 +03:00
committed by Roman Artemev
parent cdfcedb897
commit b65443dd25
11 changed files with 207 additions and 19 deletions
@@ -367,9 +367,9 @@ class SymbolTable {
}
}
inline fun <T> SymbolTable.withScope(owner: DeclarationDescriptor, block: () -> T): T {
inline fun <T> SymbolTable.withScope(owner: DeclarationDescriptor, block: SymbolTable.() -> T): T {
enterScope(owner)
val result = block()
val result = block(this)
leaveScope(owner)
return result
}