WKJavaScriptController icon indicating copy to clipboard operation
WKJavaScriptController copied to clipboard

Crash when different type of param is passed on JS

Open gabrielsousaleal opened this issue 1 year ago • 0 comments

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?

gabrielsousaleal avatar May 10 '24 12:05 gabrielsousaleal