-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid flags supplied to RegExp constructor 'y' #372
Labels
Comments
Hi. The sticky flag support is not polyfilled in |
This was referenced Jan 22, 2019
This was referenced Jan 18, 2020
This was referenced Apr 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Denis,
I expected that the RegExp polyfill would work with the sticky flag 'y'
var identifierRe = new RegExp('[a-zA-Z_][a-zA-Z0-9_-]*', 'y');
but in safari v9.1 it fails with error:
Invalid flags supplied to RegExp constructor
Am I doing something wrong? or doesn't this polyfill support the sticky flag at all?
Thanks in advance!
The text was updated successfully, but these errors were encountered: