Refactor scripting - get rid of unused type parameter in CompiledScript
This commit is contained in:
@@ -40,7 +40,7 @@ class JsEvaluationState(lock: ReentrantReadWriteLock, val engine: ScriptEngine)
|
||||
class JsCompiledScript(
|
||||
val jsCode: String,
|
||||
override val compilationConfiguration: ScriptCompilationConfiguration
|
||||
) : CompiledScript<Any> {
|
||||
) : CompiledScript {
|
||||
override suspend fun getClass(scriptEvaluationConfiguration: ScriptEvaluationConfiguration?): ResultWithDiagnostics<KClass<*>> {
|
||||
throw IllegalStateException("Class is not available for JS implementation")
|
||||
}
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ class JsScriptEvaluator : ScriptEvaluator {
|
||||
private val engine = ScriptEngineNashorn()
|
||||
|
||||
override suspend fun invoke(
|
||||
compiledScript: CompiledScript<*>,
|
||||
compiledScript: CompiledScript,
|
||||
scriptEvaluationConfiguration: ScriptEvaluationConfiguration
|
||||
): ResultWithDiagnostics<EvaluationResult> {
|
||||
return try {
|
||||
|
||||
Reference in New Issue
Block a user