[JS IR] Nullify body of declaration on it shouldn't be loaded

This commit is contained in:
Roman Artemev
2021-09-28 18:21:11 +03:00
committed by TeamCityServer
parent 4bd6e8a034
commit 2ca74174d3
2 changed files with 14 additions and 19 deletions
@@ -54,7 +54,7 @@ class CarrierDeserializer(
private val expressionBodyCache = mutableMapOf<Int, IrExpressionBody>()
private fun deserializeExpressionBody(index: Int): IrExpressionBody = expressionBodyCache.getOrPut(index) {
declarationDeserializer.deserializeExpressionBody(index).also {
declarationDeserializer.deserializeExpressionBody(index)!!.also {
injectCarriers(it, index)
}
}