diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/resolveTemporaryNames.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/resolveTemporaryNames.kt index 4230231c51b..be45a3ae8d1 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/resolveTemporaryNames.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/resolveTemporaryNames.kt @@ -78,7 +78,6 @@ private fun JsNode.computeScopes(): Scope { x.name?.let { currentScope.declaredNames += it } val oldScope = currentScope currentScope = Scope().apply { - parent = currentScope currentScope.children += this } currentScope.declaredNames += x.parameters.map { it.name } @@ -114,8 +113,7 @@ private fun JsNode.computeScopes(): Scope { } private class Scope { - var parent: Scope? = null val declaredNames = mutableSetOf() val usedNames = mutableSetOf() val children = mutableSetOf() -} \ No newline at end of file +} diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/NewNamer.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/NewNamer.kt index a0db720c621..9b6e9067428 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/NewNamer.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/NewNamer.kt @@ -83,7 +83,7 @@ class NewNamerImpl( val context: JsIrBackendContext, val unit: IrToJs.CodegenUnit, val exportId: (IrDeclarationWithName) -> String, - val stableNames: Set, + stableNames: Set, ) : IrNamerBase() { val staticNames = NameTable( reserved = stableNames.toMutableSet()