Skip to content

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