diff --git a/lyng/src/commonMain/kotlin/Common.kt b/lyng/src/commonMain/kotlin/Common.kt index f8e131d..888f1c2 100644 --- a/lyng/src/commonMain/kotlin/Common.kt +++ b/lyng/src/commonMain/kotlin/Common.kt @@ -144,7 +144,7 @@ suspend fun executeFile(fileName: String) { text = text.substring(pos + 1) } processErrors { - Compiler.compile(Source(fileName, text)).execute(baseScope) + baseScope.eval(Source(fileName, text)) } }