diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/PropertyLazyInitLowering.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/PropertyLazyInitLowering.kt index df2ff549277..974ae839888 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/PropertyLazyInitLowering.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/PropertyLazyInitLowering.kt @@ -290,7 +290,7 @@ private fun IrDeclaration.isCompatibleDeclaration(context: JsIrBackendContext) = private fun IrDeclaration.assertCompatibleDeclaration() { - assert(this !is PersistentIrElementBase<*> || createdOn == 0) + assert(this !is PersistentIrElementBase<*> || this.createdOn <= this.factory.stageController.currentStage) } private val compatibleOrigins = listOf(