mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
38199136ec
commit
74f0c2a97e
@ -266,11 +266,12 @@ class RhinoScriptEngine : AbstractScriptEngine(), Invocable, Compilable {
|
||||
return cx
|
||||
}
|
||||
|
||||
override fun hasFeature(cx: Context?, featureIndex: Int): Boolean {
|
||||
if (featureIndex == Context.FEATURE_ENABLE_JAVA_MAP_ACCESS) {
|
||||
return true
|
||||
override fun hasFeature(cx: Context, featureIndex: Int): Boolean {
|
||||
return when (featureIndex) {
|
||||
Context.FEATURE_ENABLE_JAVA_MAP_ACCESS -> true
|
||||
Context.FEATURE_ENHANCED_JAVA_ACCESS -> true
|
||||
else -> super.hasFeature(cx, featureIndex)
|
||||
}
|
||||
return super.hasFeature(cx, featureIndex)
|
||||
}
|
||||
|
||||
override fun doTopCall(
|
||||
|
Loading…
Reference in New Issue
Block a user