Hacker News new | ask | show | jobs
by eska 1257 days ago
None of your Jacascript code will run? That sounds overly dramatic. 1. this only concerns regex 2. there’s an alternative regex syntax doing the same thing as part of the ecma standard 3. it can be implemented very easily without regex in almost all cases 3. It seems like you’re only considering chrome for desktop, not other browsers or mobile
1 comments

> That sounds overly dramatic

Try appending this piece of code to your `index.js` and let me know how it goes in Safari:

    const r = /(<!foo)/
The parser will encounter a syntax error and no code is executed.