Title: Parsing error for `for (await using of of of) {}` · Issue #55555 · microsoft/TypeScript · GitHub
Open Graph Title: Parsing error for `for (await using of of of) {}` · Issue #55555 · microsoft/TypeScript
X Title: Parsing error for `for (await using of of of) {}` · Issue #55555 · microsoft/TypeScript
Description: 🔎 Search Terms "using of" 🕗 Version & Regression Information This changed between versions 5.1 and 5.2_ ⏯ Playground Link https://www.typescriptlang.org/play?#code/N4KABGBmD2BOYAoCGB3JBLALmArgZ3QDsBzMaSMi8gSgG5wo4xUNtk0tcCTLeb6AviCA 💻 Co...
Open Graph Description: 🔎 Search Terms "using of" 🕗 Version & Regression Information This changed between versions 5.1 and 5.2_ ⏯ Playground Link https://www.typescriptlang.org/play?#code/N4KABGBmD2BOYAoCGB3JBLALmArgZ3QDs...
X Description: 🔎 Search Terms "using of" 🕗 Version & Regression Information This changed between versions 5.1 and 5.2_ ⏯ Playground Link https://www.typescriptlang.org/play?#code/N4KABGBmD2BOYAoCGB3...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/55555
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parsing error for `for (await using of of of) {}`","articleBody":"### 🔎 Search Terms\r\n\r\n\"using of\"\r\n\r\n### 🕗 Version \u0026 Regression Information\r\n\r\n- This changed between versions ___5.1___ and ___5.2____\r\n\r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://www.typescriptlang.org/play?#code/N4KABGBmD2BOYAoCGB3JBLALmArgZ3QDsBzMaSMi8gSgG5wo4xUNtk0tcCTLeb6AviCA\r\n\r\n### 💻 Code\r\n\r\n```ts\r\n{\r\n for (await using of of of);\r\n}\r\n```\r\n\r\n\r\n### 🙁 Actual behavior\r\n\r\nParsing error `The left-hand side of a 'for...of' statement must be a variable or a property access.`\r\n\r\n### 🙂 Expected behavior\r\n\r\nParse successful.\r\n\r\n### Additional information about the issue\r\n\r\nContext: https://github.com/prettier/prettier/pull/15321/files#r1308180336\r\nSpec: https://tc39.es/proposal-explicit-resource-management/#sec-for-in-and-for-of-statements\r\n\r\nBabel can parse `for (await using of of of) {}`. ref: https://github.com/babel/babel/blob/b804bb08912d262133213dcd7f40d81645f97489/packages/babel-parser/test/fixtures/experimental/async-explicit-resource-management/valid-for-using-binding-of-of/input.js","author":{"url":"https://github.com/sosukesuzuki","@type":"Person","name":"sosukesuzuki"},"datePublished":"2023-08-29T04:52:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/55555/TypeScript/issues/55555"}
| 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:78f86763-7063-3fd8-dfc2-9328bad80f14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2BE:E1E8C:CBDD15:11F465C:6A61CA1E |
| html-safe-nonce | 777a816a123c1922a5b98181e081ac4e2813099fdd4e22209b3479c81a9d2e8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkJFOkUxRThDOkNCREQxNToxMUY0NjVDOjZBNjFDQTFFIiwidmlzaXRvcl9pZCI6IjQ4ODgyMjg0NzE3OTY1MTc0MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9333768f7f8b5c552f1c8304b15cdd2f8ad8f12790a34b6959b196cc79df54ca |
| hovercard-subject-tag | issue:1870877876 |
| 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/55555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c300d001a17d20bb1c91fc1b6134e0f8df6113a34ebdbbea5c742da0b1d6788/microsoft/TypeScript/issues/55555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c300d001a17d20bb1c91fc1b6134e0f8df6113a34ebdbbea5c742da0b1d6788/microsoft/TypeScript/issues/55555 |
| og:image:alt | 🔎 Search Terms "using of" 🕗 Version & Regression Information This changed between versions 5.1 and 5.2_ ⏯ Playground Link https://www.typescriptlang.org/play?#code/N4KABGBmD2BOYAoCGB3JBLALmArgZ3QDs... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sosukesuzuki |
| hostname | github.com |
| expected-hostname | github.com |
| None | b2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c |
| 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 | d1866027ded575df8a15c731dd8b9986c9483ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width