[JS_IR] Fix exponential behavior accidentally introduced.
This commit is contained in:
committed by
Alexander Udalov
parent
1f2ca606a5
commit
37145fb055
+3
-4
@@ -174,10 +174,9 @@ private fun JsCommonBackendContext.fixReferencesToConstructorParameters(irClass:
|
||||
|
||||
override fun visitSetValue(expression: IrSetValue): IrExpression {
|
||||
expression.transformChildrenVoid()
|
||||
mapping.enumConstructorOldToNewValueParameters[expression.symbol.owner]?.let {
|
||||
return builder.irSet(it.symbol, expression.value)
|
||||
}
|
||||
return super.visitSetValue(expression)
|
||||
return mapping.enumConstructorOldToNewValueParameters[expression.symbol.owner]?.let {
|
||||
builder.irSet(it.symbol, expression.value)
|
||||
} ?: expression
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user