6.6.1 - Alpha2 - 修复 "非原始类型值" 异常
This commit is contained in:
@@ -864,7 +864,10 @@ object RhinoUtils {
|
||||
|
||||
override fun toString(): String = "function ${funcName ?: ""}() { ... }"
|
||||
|
||||
override fun getDefaultValue(typeHint: Class<*>?) = this
|
||||
override fun getDefaultValue(typeHint: Class<*>?) = when (typeHint) {
|
||||
org.mozilla.javascript.ScriptRuntime.StringClass -> toString()
|
||||
else -> this
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user