Get rid of eval on daemon completely, fixes also JSR 223 examples

This commit is contained in:
Ilya Chernikov
2017-02-09 10:00:01 +01:00
parent a3a782613a
commit 63aae56b11
7 changed files with 20 additions and 52 deletions
@@ -32,7 +32,6 @@ open class KotlinRemoteReplCompilerClient(
messageCollector: MessageCollector,
templateClasspath: List<File>,
templateClassName: String,
scriptArgsWithTypes: ScriptArgsWithTypes,
port: Int = SOCKET_ANY_FREE_PORT
) : ReplCompiler {
val services = BasicCompilerServicesWithResultsFacadeServer(messageCollector, null, port)
@@ -48,8 +47,7 @@ open class KotlinRemoteReplCompilerClient(
emptyArray()),
services,
templateClasspath,
templateClassName,
scriptArgsWithTypes
templateClassName
).get()
// dispose should be called at the end of the repl lifetime to free daemon repl session and appropriate resources