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

Update RegExpBuiltInExec to latest spec #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jugglinmike
Copy link
Contributor

The ES2016 draft modifies the semantics of RegExpBuiltinExec to infer
"global" and "sticky" using the regular expression object's
[[OriginalFlags]] internal slot [1]. Update the algorithm accordingly.

This change removes two observable operations. An existing regression
test relied on one of these operations (accessing the global property)
during the evaluation of RegExp.prototype[@@replace]. Update the
regression test to use a different mechanism to assert the same
semantics.

[1] tc39/ecma262#494

The ES2016 draft modifies the semantics of RegExpBuiltinExec to infer
"global" and "sticky" using the regular expression object's
[[OriginalFlags]] internal slot [1]. Update the algorithm accordingly.

This change removes two observable operations. An existing regression
test relied on one of these operations (accessing the `global` property)
during the evaluation of `RegExp.prototype[@@replace]`. Update the
regression test to use a different mechanism to assert the same
semantics.

[1] tc39/ecma262#494
@jugglinmike
Copy link
Contributor Author

jugglinmike commented May 3, 2016

This depends on gh-20.

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

Successfully merging this pull request may close these issues.

1 participant