This commit is contained in:
kunfei
2023-03-25 19:32:01 +08:00
parent 08a17b6c31
commit 0d9714cbcf
4 changed files with 11 additions and 37 deletions
@@ -42,15 +42,11 @@ abstract class AbstractScriptEngine(val bindings: Bindings? = null) : ScriptEngi
}
override fun put(key: String, value: Any?) {
val nn = getBindings(100)
if (nn != null) {
nn[key] = value
}
getBindings(100)?.put(key, value)
}
override fun get(key: String): Any? {
val nn = getBindings(100)
return nn?.get(key)
return getBindings(100)?.get(key)
}
override fun eval(script: String, scope: Scriptable): Any? {