[JS IR] hacky fix for local variables name binding
This commit is contained in:
committed by
TeamCityServer
parent
e4c668462c
commit
46a23c70df
+6
-2
@@ -35,7 +35,9 @@ class JsGenerationContext(
|
||||
currentFunction = func,
|
||||
staticContext = staticContext,
|
||||
localNames = localNames,
|
||||
)
|
||||
).also {
|
||||
it.nameCache += nameCache
|
||||
}
|
||||
}
|
||||
|
||||
fun newDeclaration(func: IrFunction? = null, localNames: LocalNameGenerator? = null): JsGenerationContext {
|
||||
@@ -44,7 +46,9 @@ class JsGenerationContext(
|
||||
currentFunction = func,
|
||||
staticContext = staticContext,
|
||||
localNames = localNames,
|
||||
)
|
||||
).also {
|
||||
it.nameCache += nameCache
|
||||
}
|
||||
}
|
||||
|
||||
private val nameCache = mutableMapOf<IrElement, JsName>()
|
||||
|
||||
Reference in New Issue
Block a user