This commit is contained in:
Horis committed 2024-01-28 17:09:25 +08:00
1 parent 5a32bfd414
commit cc9fbf4f8d
22 files changed
+350 -160

No files matched your search

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