Title: TypeScript 2.3.1 fails to compile this JS and throws TypeError · Issue #15525 · microsoft/TypeScript · GitHub
Open Graph Title: TypeScript 2.3.1 fails to compile this JS and throws TypeError · Issue #15525 · microsoft/TypeScript
X Title: TypeScript 2.3.1 fails to compile this JS and throws TypeError · Issue #15525 · microsoft/TypeScript
Description: TypeScript Version: 2.3.1 and 2.3.2 Code tsconfig.json: { "compilerOptions": { "target": "es5", "allowJs": true, "outDir": "out", "rootDir": "src" } } src/test.js: someFunction(function(BaseClass) { class Hello extends BaseClass { constr...
Open Graph Description: TypeScript Version: 2.3.1 and 2.3.2 Code tsconfig.json: { "compilerOptions": { "target": "es5", "allowJs": true, "outDir": "out", "rootDir": "src" } } src/test.js: someFunction(function(BaseClass) ...
X Description: TypeScript Version: 2.3.1 and 2.3.2 Code tsconfig.json: { "compilerOptions": { "target": "es5", "allowJs": true, "outDir": "out", "r...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15525
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript 2.3.1 fails to compile this JS and throws TypeError","articleBody":"**TypeScript Version:** 2.3.1 and 2.3.2\r\n\r\n**Code**\r\n\r\n`tsconfig.json`:\r\n```json\r\n{\r\n\t\"compilerOptions\": {\r\n\t\t\"target\": \"es5\",\r\n\t\t\"allowJs\": true,\r\n\t\t\"outDir\": \"out\",\r\n\t\t\"rootDir\": \"src\"\r\n\t}\r\n}\r\n```\r\n\r\n`src/test.js`:\r\n```js\r\nsomeFunction(function(BaseClass) {\r\n\tclass Hello extends BaseClass {\r\n\t\tconstructor() {\r\n\t\t\tthis.foo = \"bar\";\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n**Expected behavior:**\r\nTo compile without errors\r\n\r\n**Actual behavior:**\r\nthrows TypeError: Cannot read property 'kind' of undefined\r\n\r\nTypeScript 2.3.0 does not have this problem but 2.3.1 and 2.3.2 does.","author":{"url":"https://github.com/zenorbi","@type":"Person","name":"zenorbi"},"datePublished":"2017-05-02T09:43:38Z","url":"https://github.com/microsoft/TypeScript/issues/15525"}
| 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:d84d7084-2448-c0c0-cd19-dc751aeef018 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A51E:1F7384:AEFE0A:E8D79E:6B00ED67 |
| html-safe-nonce | fd89b21ed11703f0553e6e5a3616434545ed22ee56e21cd1b9f7a1be07899f4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTFFOjFGNzM4NDpBRUZFMEE6RThENzlFOjZCMDBFRDY3IiwidmlzaXRvcl9pZCI6IjY0MjkyMDUwOTQ4NTU2NjcwNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c18d3a8fb7bd0f6669a590ab04060edca53e786ae77e30dd3cc6cfb75db278e |
| hovercard-subject-tag | issue:225643728 |
| 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/15525/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87f5212b20beed634934aad1ed50f6db57c66d1f0047efcfd1f8e3689bac706e/microsoft/TypeScript/issues/15525 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87f5212b20beed634934aad1ed50f6db57c66d1f0047efcfd1f8e3689bac706e/microsoft/TypeScript/issues/15525 |
| og:image:alt | TypeScript Version: 2.3.1 and 2.3.2 Code tsconfig.json: { "compilerOptions": { "target": "es5", "allowJs": true, "outDir": "out", "rootDir": "src" } } src/test.js: someFunction(function(BaseClass) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zenorbi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width