[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 {
|
override fun visitSetValue(expression: IrSetValue): IrExpression {
|
||||||
expression.transformChildrenVoid()
|
expression.transformChildrenVoid()
|
||||||
mapping.enumConstructorOldToNewValueParameters[expression.symbol.owner]?.let {
|
return mapping.enumConstructorOldToNewValueParameters[expression.symbol.owner]?.let {
|
||||||
return builder.irSet(it.symbol, expression.value)
|
builder.irSet(it.symbol, expression.value)
|
||||||
}
|
} ?: expression
|
||||||
return super.visitSetValue(expression)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user