[JS IR] advance stage in regular mode when needed

This commit is contained in:
Anton Bannykh
2021-11-12 13:58:27 +03:00
committed by TeamCityServer
parent 7d7dd3fe97
commit ff02ea5840
@@ -187,7 +187,9 @@ fun compileIr(
}
irFactory.stageController = object : StageController(irFactory.stageController.currentStage) {}
} else {
jsPhases.invokeToplevel(phaseConfig, context, allModules)
(irFactory.stageController as? WholeWorldStageController)?.let {
lowerPreservingTags(allModules, context, phaseConfig, it)
} ?: jsPhases.invokeToplevel(phaseConfig, context, allModules)
}
}