Skip to content
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

Cannot set property flags on regexp #1730

Open
andreabergia opened this issue Nov 25, 2024 · 0 comments
Open

Cannot set property flags on regexp #1730

andreabergia opened this issue Nov 25, 2024 · 0 comments

Comments

@andreabergia
Copy link
Contributor

This is not allowed by Rhino, but it should be according to the spec:

var regex = /a/;
Object.defineProperty(regex, 'flags', {
  value: 'muyi'
});

Instead rhino complains with TypeError: Cannot change the value of attribute "flags" because writable is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant