JS: fix bug in resolveTemporaryNames.kt

This commit is contained in:
Anton Bannykh
2018-07-24 20:18:49 +03:00
parent 3323fd5a11
commit 75c7045ea7
@@ -106,7 +106,7 @@ private fun JsNode.resolveNames(): Map<JsName, JsName> {
private fun Scope.liftUsedNames(): Scope {
fun traverse(scope: Scope) {
scope.children.forEach { child ->
scope.usedNames += scope.declaredNames
scope.usedNames += child.declaredNames
traverse(child)
scope.usedNames += child.usedNames
}