mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user