```js const a1 = RegExp("[") const a2 = RegExp("[") const b1 = RegExp("a", "xyz") const b2 = RegExp("a", "xyz") ``` These are invalid and throws an error, but is incorrectly removed by the minifier. [playground](https://playground.oxc.rs/#eNp1U8Fu2zAM/ZVApw3IgLbAgCLADkPbAAO6tWuH9bBcaJlxlcqSRtGJsyD/PsqxlHToTrYeRfLx8WmntJop7V3kCZxPPk0esLnpw7uF+rVQ7xdujFz8L1K9yoGFmk4Wqt/+Ob3yKvmfK2qqvJrtFHUufaxxrGZMHU7V0lMLzEhqtgQbBWECFxNcEBO9Bcb6GrUFAjbSsQQ3z4YxBtBYoBZcY49H7dtAGCXl0DJqHyQ6HrZt5W0+6WUzpu2nKgDFxGunsGd0UdqKihx7GQes9ZsH5I7cXcfR1DjvnE7McqnUEmmN90CSm9Eh7+flF8dkpKI+kkJhzUbfEHkaUeGQpBo4yP+JVDvVRfwB1VEGhurJ1PysZhdTha6+W94aJ1MquxS6QbrxGL88k24mKfS983yUaRX7xzfg3+l0Tz5ILwXxg0OssZaasicj9Jor37aQYtYKKnOYMqzMssnzS3wD2yhXKgL9gvwoO5P0fDmj0OKB+djfVyvU/EQQpEYWNTUauH5mEbLqhCHSSZqoVWx00IuBGhTXKYwXZ+cfpYAoeI1LyZl7urIQ49ygrctCsA9IpkXHYMV4XnxXFiPR1nBBvyJDDSwijFt727A7FYVskN0jORDPZara19jg8DRc2nGx4yrWXl7uqKZznodaGbHY5LtDlWzzZJb8BmRyH25xjaXoC2L4Jipn7wyp4kdv5+LNlLFGqnw80dK4tIMUKn97getBvgSXv33Ck8x5pv1fPdOT4g==) related: https://github.com/rolldown/rolldown/issues/7916
These are invalid and throws an error, but is incorrectly removed by the minifier.
playground
related: rolldown/rolldown#7916