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

Make .indices a data property. Closes #29. #31

Open
wants to merge 1 commit into
base: master
from

Conversation

@syg
Copy link

commented Aug 13, 2019

Making .indices a caching getter in the spec makes the function identity
of the getter observable. This makes it necessary for implementations to
create a new Function object per result object of
RegExp.prototype.exec. The intended laziness of .indices is possible
in implementations even with it as a data property in spec.

Make .indices a data property. Closes #29.
Making .indices a caching getter in the spec makes the function identity
of the getter observable. This makes it necessary for implementations to
create a new Function object per result object of
`RegExp.prototype.exec`. The intended laziness of .indices is possible
in implementations even with it as a data property in spec.
@ljharb

ljharb approved these changes Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.