[JS IR] Fix assertion to enable early created declarations

This commit is contained in:
Ilya Goncharov
2021-09-20 20:57:12 +03:00
committed by Space
parent 8f22e30515
commit dedb9d9018
@@ -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(