优化
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user