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: ``` TypeScript 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 expressions are invalid.