Re:The Triumph of Safari
by eska on Saturday January 14, 2023 @07:49AM
(#34379900)
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
[ Parent
| on HN ]
Re:The Triumph of Safari
by pontilanda on Monday January 16, 2023 @11:51PM
(#34409279)
> 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.