-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix RegExp methods in old browsers #453
Fix RegExp methods in old browsers #453
Conversation
// `RegExp.prototype[@@match]` method | ||
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match | ||
function (regexp) { | ||
var res = maybeCallNative(nativeMatch, regexp, this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All those "maybeCallNative" calls are to fix the infinite recursion in Chrome 50
delegates: delegates, | ||
replaceSupportsNamedGroups: replaceSupportsNamedGroups | ||
}); | ||
var splitWorksWithOverwrittenExec = KEY === 'split' && (function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the fix for Chrome 51.
194442e
to
34c4808
Compare
IE8 is not fully fixed yet
20287c1
to
9fdd727
Compare
9fdd727
to
b8f73b1
Compare
0a77b65
to
823756a
Compare
c62cbda
to
626f321
Compare
I'm having difficulty debbuging Safari 9: if I run all the tests, the Also, if I add a breakpoint and manually step through the test it passes. |
@zloirock There is a test that is only failing sometimes in Safari 9 and always passes when I run it step-by-step using the dev tools 😕 Apart from that, this PR is ready to be reviewed. EDIT: If I disable the cookies, Safari consistently fails the test. But if I run it with devtools open Safari crashes 😕
|
Done! |
ed0276f
to
d3fa95e
Compare
Ref - #411
Chrome 50 (aeacd0d - Disable whitespaces in the diff)
Chrome 51 (aeacd0d - Disable whitespaces in the diff)
IE 8 (5bd11fc, b8f73b1, 823756a)
Safari 9 (ed0276f)