[JS_IR] Use IrModuleFragment as input to lowering instead of iterable

This way we will be able to reuse existing utils
to create a lowering.

#KT-63073
This commit is contained in:
Ivan Kylchik
2023-09-21 14:39:00 +02:00
committed by Space Team
parent 1eacd5efc2
commit 0a6f711a41
5 changed files with 43 additions and 38 deletions
@@ -611,7 +611,7 @@ class GenerateIrRuntime {
ExternalDependenciesGenerator(symbolTable, listOf(jsLinker)).generateUnboundSymbolsAsDependencies()
jsPhases.invokeToplevel(phaseConfig, context, listOf(module))
jsPhases.invokeToplevel(phaseConfig, context, module)
val transformer = IrModuleToJsTransformer(context, shouldReferMainFunction = false)