This commit is contained in:
Horis committed 2025-03-25 18:42:41 +08:00
1 parent ba9641873d
commit 2e7b878f1a
4 files changed
+17 -28

No files matched your search

@@ -54,6 +54,10 @@ abstract class AbstractScriptEngine(val bindings: Bindings? = null) : ScriptEngi
return getBindings(ENGINE_SCOPE)?.get(key)
}
override fun eval(reader: Reader, scope: Scriptable): Any? {
return eval(reader, scope, null)
}
override suspend fun evalSuspend(script: String, scope: Scriptable): Any? {
return this.evalSuspend(StringReader(script), scope)
}