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

Remove support for XRegExp.install('natives') #207

Merged
merged 2 commits into from
Jan 2, 2018

Conversation

josephfrazier
Copy link
Collaborator

This fixes #89

@slevithan slevithan mentioned this pull request Jan 2, 2018
XRegExp.install('natives');
var fixedExec = RegExp.prototype.exec;
XRegExp.uninstall('natives');
var fixedExec = XRegExp.exec;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 3 cases below of comparing "shimmed exec" to XRegExp.exec are no longer testing different things. I'd recommend removing the fixedExec var entirely and the 3 .add calls that use it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good point! I was essentially doing a naive search/replace on the code, so I didn't notice this. Fixed in 9f21bd0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@slevithan slevithan merged commit 9dc86a7 into slevithan:master Jan 2, 2018
@josephfrazier josephfrazier deleted the remove-natives-feature branch January 2, 2018 06:57
speecyy added a commit to speecyy/xregexp that referenced this pull request Jan 6, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3590212051 added a commit to 3590212051/POPmotion that referenced this pull request Jan 8, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

Remove installable 'natives' feature that modifies String and RegExp prototypes
2 participants