Core-js: Out of stack space error in IE 11 when loading shim.min.js from core-js 2.6.0

Created on 10 Dec 2018  路  8Comments  路  Source: zloirock/core-js

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

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

All 8 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ajbowler picture ajbowler  路  3Comments

mrstux picture mrstux  路  3Comments

cdietze picture cdietze  路  3Comments

Sequoia picture Sequoia  路  5Comments

straczowski picture straczowski  路  4Comments