Title: [Suggestion]: Add --strictReadonlyChecks option to catch runtime errors modifying frozen objects at compile time · Issue #11481 · microsoft/TypeScript · GitHub
Open Graph Title: [Suggestion]: Add --strictReadonlyChecks option to catch runtime errors modifying frozen objects at compile time · Issue #11481 · microsoft/TypeScript
X Title: [Suggestion]: Add --strictReadonlyChecks option to catch runtime errors modifying frozen objects at compile time · Issue #11481 · microsoft/TypeScript
Description: The Problem It is currently not possible to consistently catch modifications of frozen objects, which lead to runtime errors in strict mode. See #11180 and #11480 for examples. Proposed Solution Add a strictReadonlyChecks compiler option...
Open Graph Description: The Problem It is currently not possible to consistently catch modifications of frozen objects, which lead to runtime errors in strict mode. See #11180 and #11480 for examples. Proposed Solution Ad...
X Description: The Problem It is currently not possible to consistently catch modifications of frozen objects, which lead to runtime errors in strict mode. See #11180 and #11480 for examples. Proposed Solution Ad...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/11481
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Suggestion]: Add --strictReadonlyChecks option to catch runtime errors modifying frozen objects at compile time","articleBody":"**The Problem**\nIt is currently not possible to consistently catch modifications of frozen objects, which lead to runtime errors in strict mode. See #11180 and #11480 for examples. \n\n**Proposed Solution**\nAdd a `strictReadonlyChecks` compiler option, which does not allow to assign `readonly` fields to non-readonly (regular) fields. Also do not allow deleting items from readonly dictionaries (#11480), unless this can already be solved by regular compiler behavior.\n","author":{"url":"https://github.com/paulkoerbitz","@type":"Person","name":"paulkoerbitz"},"datePublished":"2016-10-10T08:55:34Z","url":"https://github.com/microsoft/TypeScript/issues/11481"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:ebdf6365-61e2-c408-80c1-e1154ed7eda6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8E4:22D3B5:1293B9:18F2D2:6AFBDD61 |
| html-safe-nonce | b194e207d7c08c67d5af3a6456a61740557e7485a2d8873529f2db559b3a8858 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEU0OjIyRDNCNToxMjkzQjk6MThGMkQyOjZBRkJERDYxIiwidmlzaXRvcl9pZCI6IjgxNDIxNDE5NjA2NDM5MjczOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bcb045cbdc91743b90661abc2aba3b2c8e4450f88ca68b75ce0e53d0dc77b625 |
| hovercard-subject-tag | issue:181964650 |
| 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/microsoft/TypeScript/11481/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1168a1ffe62c59fffe0e04dbc6940209dad42b1741415f30bf6ff541d082f30f/microsoft/TypeScript/issues/11481 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1168a1ffe62c59fffe0e04dbc6940209dad42b1741415f30bf6ff541d082f30f/microsoft/TypeScript/issues/11481 |
| og:image:alt | The Problem It is currently not possible to consistently catch modifications of frozen objects, which lead to runtime errors in strict mode. See #11180 and #11480 for examples. Proposed Solution Ad... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paulkoerbitz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | df859c48a4c8b4c0009c19bb4e82101aacb4b998 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width