6.6.1 - Alpha2 - 修复 "非原始类型值" 异常

This commit is contained in:
SuperMonster003 committed 2024-12-05 02:27:34 +08:00
1 parent 2f799b4b21
commit 4904b30d34
4 files changed
+11 -5

No files matched your search

@@ -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
}
}