Title: assertions in return statements and in void operations aren't stripped · Issue #47 · unassert-js/unassert · GitHub
Open Graph Title: assertions in return statements and in void operations aren't stripped · Issue #47 · unassert-js/unassert
X Title: assertions in return statements and in void operations aren't stripped · Issue #47 · unassert-js/unassert
Description: The following should be transformed from: export function assertNever(msg = "never reached") { return void assert(false, msg); } to: export function assertNever(msg = "never reached") { return void undefined; } But the presence of with v...
Open Graph Description: The following should be transformed from: export function assertNever(msg = "never reached") { return void assert(false, msg); } to: export function assertNever(msg = "never reached") { return void...
X Description: The following should be transformed from: export function assertNever(msg = "never reached") { return void assert(false, msg); } to: export function assertNever(msg = "never reached&...
Opengraph URL: https://github.com/unassert-js/unassert/issues/47
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"assertions in return statements and in void operations aren't stripped","articleBody":"The following should be transformed from:\r\n\r\n```js\r\nexport function assertNever(msg = \"never reached\") {\r\n return void assert(false, msg);\r\n}\r\n\r\n```\r\n\r\nto:\r\n\r\n```js\r\nexport function assertNever(msg = \"never reached\") {\r\n return void undefined;\r\n}\r\n```\r\n\r\nBut the presence of with `void` or `return` stops this.","author":{"url":"https://github.com/RebeccaStevens","@type":"Person","name":"RebeccaStevens"},"datePublished":"2023-06-20T08:53:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/47/unassert/issues/47"}
| 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:faa8351d-14f7-a16a-6684-859c9ed12183 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C90:121D22:2F56D1C:3FC2800:69706130 |
| html-safe-nonce | ebc53648ac460b34584ea6886bbfe07a764c4d5db57c1fe4424328726c3dec42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzkwOjEyMUQyMjoyRjU2RDFDOjNGQzI4MDA6Njk3MDYxMzAiLCJ2aXNpdG9yX2lkIjoiMzE0NDIxNzc1ODEyMzcxMjgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 20d653add322334efc8aa2b11257ced2ea21a33e384b3ca058f732cb9914560c |
| hovercard-subject-tag | issue:1764951179 |
| 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/unassert-js/unassert/47/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b1f2b610b671ab504fd7359aae6d974b9912cfbed237c4fc911e12ad7bb1de2/unassert-js/unassert/issues/47 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b1f2b610b671ab504fd7359aae6d974b9912cfbed237c4fc911e12ad7bb1de2/unassert-js/unassert/issues/47 |
| og:image:alt | The following should be transformed from: export function assertNever(msg = "never reached") { return void assert(false, msg); } to: export function assertNever(msg = "never reached") { return void... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RebeccaStevens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/unassert-js/unassert git https://github.com/unassert-js/unassert.git |
| octolytics-dimension-user_id | 24517653 |
| octolytics-dimension-user_login | unassert-js |
| octolytics-dimension-repository_id | 36333911 |
| octolytics-dimension-repository_nwo | unassert-js/unassert |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36333911 |
| octolytics-dimension-repository_network_root_nwo | unassert-js/unassert |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width