Title: Compiler should error when encountering invalid regular expressions · Issue #3432 · microsoft/TypeScript · GitHub
Open Graph Title: Compiler should error when encountering invalid regular expressions · Issue #3432 · microsoft/TypeScript
X Title: Compiler should error when encountering invalid regular expressions · Issue #3432 · microsoft/TypeScript
Description: In tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts we have an invalid regex: var x = /fo(o/; This is not valid JavaScript, but we don't give any errors. It would be helpful to let users know when their regular ...
Open Graph Description: In tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts we have an invalid regex: var x = /fo(o/; This is not valid JavaScript, but we don't give any errors. It would be helpf...
X Description: In tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts we have an invalid regex: var x = /fo(o/; This is not valid JavaScript, but we don't give any errors. It would be h...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/3432
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compiler should error when encountering invalid regular expressions","articleBody":"In [`tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts`](https://github.com/Microsoft/TypeScript/blob/master/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts) we have an invalid regex:\n\n``` TypeScript\nvar x = /fo(o/;\n```\n\nThis is not valid JavaScript, but we don't give any errors. It would be helpful to let users know when their regular expressions are invalid.\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2015-06-09T01:20:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/3432/TypeScript/issues/3432"}
| 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:83bbe3b7-d750-e255-28a1-d7d348a5e6eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB62:BB417:3A245C:4BABF3:6A614E3B |
| html-safe-nonce | 924a1a94a5b65f74bfefe13c58d78cdbede23b480e3d803053618619b845d5dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjYyOkJCNDE3OjNBMjQ1Qzo0QkFCRjM6NkE2MTRFM0IiLCJ2aXNpdG9yX2lkIjoiNTczNTMwNDQ4MzM3NjgxMTU3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e4c0bacd8f181aa1db7b87a3c77274144fd5c306474e8e320d36e0a17998e31 |
| hovercard-subject-tag | issue:86397026 |
| 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/3432/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba1c0ac2ebf2c9af253e06f8d1816462871b6fb8fe07ac58bc0553e2bd9cbce5/microsoft/TypeScript/issues/3432 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba1c0ac2ebf2c9af253e06f8d1816462871b6fb8fe07ac58bc0553e2bd9cbce5/microsoft/TypeScript/issues/3432 |
| og:image:alt | In tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts we have an invalid regex: var x = /fo(o/; This is not valid JavaScript, but we don't give any errors. It would be helpf... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35b919fdb8e6752d2ed95a144e761ca5e924557563e2ed0a5ebf6c4430cdeeb6 |
| 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 | 1e22b08b60ccb67c3791f565bed248565260e611 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width