WKJavaScriptController
WKJavaScriptController copied to clipboard
Crash when different type of param is passed on JS
If we have this function injected:
func test(string: String)
And in WebView we call test(123), passing a int instead a string, the app crashes because of unsafeBitCast.
Any idea in how to prevent it?