I have an Angular app, and it works fine in all browsers when loading shim.min.js from core-js v2.5.7. However, after updating to core-js v2.6.0, I get an "Out of stack space" error in shim.min.js in IE 11.
I tried switching to the non-minified file and got the same error, on the following line:
https://github.com/zloirock/core-js/blob/f980318866f5cfb2933493c81ba89e1baf0f33c2/client/shim.js#L6312
I'll check it tomorrow
@theodorejb could you add a reproducible example?
The problem is that $split refers to the function which calls it, I stead of the original $split
+1
Having the same problem.
Looking at the original uncompiled file https://github.com/zloirock/core-js/blob/v2.5.7/modules/es6.regexp.split.js which doesn't have the issue makes me suspect that when it's built the assignment to $split gets optimized out and thus we get this issue
@zloirock a reproducible example is as simple as running 'a'.split('') on the JS console of IE11
You are right
We are getting the same issue, downgrading to 2.5.7 fixed it for now.
Same issue here
The fix has been merged and it will be released in 2.6.1.
Most helpful comment
+1
Having the same problem.
Looking at the original uncompiled file https://github.com/zloirock/core-js/blob/v2.5.7/modules/es6.regexp.split.js which doesn't have the issue makes me suspect that when it's built the assignment to $split gets optimized out and thus we get this issue
@zloirock a reproducible example is as simple as running
'a'.split('')on the JS console of IE11