We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f195f25 commit db1e8fcCopy full SHA for db1e8fc
WKJavaScriptController/WKJavaScriptController.swift
@@ -34,7 +34,7 @@ open class JSValueType: NSObject {
34
_value = number
35
}
36
37
- fileprivate func toString() -> String {
+ open override var description: String {
38
return _value.stringValue
39
40
@@ -432,7 +432,7 @@ extension WKJavaScriptController: WKScriptMessageHandler {
432
} else if let bool = result as? Bool {
433
return bool ? "true" : "false"
434
} else if let jsValueType = result as? JSValueType {
435
- return jsValueType.toString()
+ return "\(jsValueType)"
436
} else if let string = result as? String {
437
return "'\(string)'"
438
} else if let array = result as? [AnyObject] {
0 commit comments