Title: Comparison typeof with undefined (not "undefined" string) in commandParser · Issue #16660 · microsoft/TypeScript · GitHub
Open Graph Title: Comparison typeof with undefined (not "undefined" string) in commandParser · Issue #16660 · microsoft/TypeScript
X Title: Comparison typeof with undefined (not "undefined" string) in commandParser · Issue #16660 · microsoft/TypeScript
Description: Recent PR #12336 Use parser to parse tsconfig json instead of using Json.parse contained an apparent bug: if (typeof keyText !== undefined && typeof value !== undefined) { typeof operator can never produce undefined, it's guaranteed to r...
Open Graph Description: Recent PR #12336 Use parser to parse tsconfig json instead of using Json.parse contained an apparent bug: if (typeof keyText !== undefined && typeof value !== undefined) { typeof operator can never...
X Description: Recent PR #12336 Use parser to parse tsconfig json instead of using Json.parse contained an apparent bug: if (typeof keyText !== undefined && typeof value !== undefined) { typeof operator c...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/16660
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Comparison typeof with undefined (not \"undefined\" string) in commandParser","articleBody":"Recent PR #12336 **Use parser to parse tsconfig json instead of using Json.parse** contained an apparent bug:\r\n\r\n```typescript\r\nif (typeof keyText !== undefined && typeof value !== undefined) {\r\n```\r\n\r\n`typeof` operator can never produce `undefined`, it's guaranteed to return a string for any value.\r\n\r\n\r\n@andy-ms [have noticed it](https://github.com/Microsoft/TypeScript/pull/12336#discussion_r120488542), but it's got lost in the large review.\r\n\r\nHere is the link to that place on the master branch for convenience. It still compares typeof to undefined: [commandLineParser.ts#L1056](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L1056)","author":{"url":"https://github.com/mihailik","@type":"Person","name":"mihailik"},"datePublished":"2017-06-20T21:42:57Z","url":"https://github.com/microsoft/TypeScript/issues/16660"}
| 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:3578d603-1f21-ab00-bd6f-a9dae2f0d4a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC80:E9D16:21F79C3:2B11D08:6B01B0AE |
| html-safe-nonce | 16660e29bb466c8d5934606c6fcd24a1b268e87edd78ca8c1808a6a9d10c02f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzgwOkU5RDE2OjIxRjc5QzM6MkIxMUQwODo2QjAxQjBBRSIsInZpc2l0b3JfaWQiOiIzNTAyNzAyNTYzNjI5ODM4NTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a65f08059bd18181b33eaae0850f45f69356ed081096424575366ca910bdcd80 |
| hovercard-subject-tag | issue:237354229 |
| 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/16660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a559e12ceef75b0d519a3da87a82f6c2b9b56c1c02d12b0f9b067f844d67ab5/microsoft/TypeScript/issues/16660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a559e12ceef75b0d519a3da87a82f6c2b9b56c1c02d12b0f9b067f844d67ab5/microsoft/TypeScript/issues/16660 |
| og:image:alt | Recent PR #12336 Use parser to parse tsconfig json instead of using Json.parse contained an apparent bug: if (typeof keyText !== undefined && typeof value !== undefined) { typeof operator can never... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mihailik |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width