flutter_js
flutter_js copied to clipboard
BUG: Cannot handle escaped `-` in capturing groups when unicode flag is enabled
The following evaluation fails with the error invalid escape sequence in regular expression
despite being a valid regular expression in JS as of ES6
flutterJs.evaluate("const x = /[\-a]/u;")
This problem occurs on Linux - Debian Buster
If indeed you are using QuickJS, then yes, it is an upstream issue and flutter_js
can do nothing about it. Here is me trying to run your code with the official quickjs CLI:
![image](https://user-images.githubusercontent.com/29288116/200132002-3b18f8b5-0550-4257-8f35-5063b6a80aa6.png)
So unfortunately I would consider closing this issue here, as nothing can be done. You could consider using JScore instead.