Title: Crash when different type of param is passed on JS · Issue #14 · ridi/WKJavaScriptController · GitHub
Open Graph Title: Crash when different type of param is passed on JS · Issue #14 · ridi/WKJavaScriptController
X Title: Crash when different type of param is passed on JS · Issue #14 · ridi/WKJavaScriptController
Description: 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?
Open Graph Description: 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?
X Description: 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?
Opengraph URL: https://github.com/ridi/WKJavaScriptController/issues/14
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash when different type of param is passed on JS","articleBody":"If we have this function injected:\r\n\r\nfunc test(string: String)\r\n\r\nAnd in WebView we call test(123), passing a int instead a string, the app crashes because of unsafeBitCast.\r\n\r\nAny idea in how to prevent it?","author":{"url":"https://github.com/gabrielsousaleal","@type":"Person","name":"gabrielsousaleal"},"datePublished":"2024-05-10T12:43:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/14/WKJavaScriptController/issues/14"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:261b6ea6-85eb-fda8-54bd-e9f4b22baeaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D100:3B09EF:C3EB2DE:FD29A92:6976BB10 |
| html-safe-nonce | 375f742b58a733b80eb6b5e5ef25d05894e200dd17f6bef6969b52b173c543a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTAwOjNCMDlFRjpDM0VCMkRFOkZEMjlBOTI6Njk3NkJCMTAiLCJ2aXNpdG9yX2lkIjoiNDY0NDUyODA0MTY3NjQyMTkwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8edfff879c70dca735ce7956d824433915ef2b21ad977cf866713df0cbbb043b |
| hovercard-subject-tag | issue:2289663486 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ridi/WKJavaScriptController/14/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/24955411?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/24955411?s=400&v=4 |
| og:image:alt | 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? |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gabrielsousaleal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/ridi/WKJavaScriptController git https://github.com/ridi/WKJavaScriptController.git |
| octolytics-dimension-user_id | 24955411 |
| octolytics-dimension-user_login | ridi |
| octolytics-dimension-repository_id | 78834190 |
| octolytics-dimension-repository_nwo | ridi/WKJavaScriptController |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 78834190 |
| octolytics-dimension-repository_network_root_nwo | ridi/WKJavaScriptController |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width