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: github.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:0f6bcce2-03f3-d79b-fdf3-e2c6586a78e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E468:1BDD2D:7DDA438:A269C5E:6976DDB9 |
| html-safe-nonce | a98f2ce26fb601f16d5adba3a06a05f7cd42453cffe94170ac4d660f5a9fa6c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDY4OjFCREQyRDo3RERBNDM4OkEyNjlDNUU6Njk3NkREQjkiLCJ2aXNpdG9yX2lkIjoiNjE5OTE3MDY2MjI1MDUwMzYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7bb15599d8fcc7d141958c0a77a5f542e11d95c73511fb443b511452d4d57b3 |
| 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 | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width