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

Out of stack space in IE11 when trying to add sympol-keyed property to XHR instance #387

Closed
betalb opened this issue Mar 19, 2018 · 2 comments

Comments

@betalb
Copy link

betalb commented Mar 19, 2018

Out of stack space in IE11 when trying to add sympol-keyed property to XHR instance

When trying to set some property on XMLHttpRequest instance with Symbol as property key, IE11 throws Out of stack space exception.

Here is simple reproducible test case

<script type="text/javascript" src="https://raw.githack.com/zloirock/core-js/v2.5.1/client/shim.min.js"></script>
<script type="text/javascript">
    var ctxSymbol = Symbol('smbl');

    var xhrInstanceUnderTest = new XMLHttpRequest();
    xhrInstanceUnderTest[ctxSymbol] = 'hello';
</script>

Error occurs in core-js/modules/es6.symbol.js $set (inside of if (!USE_NATIVE)) goes into infinite recursion

@zloirock
Copy link
Owner

Looks like a duplicate of #163

@zloirock
Copy link
Owner

You can see a note about possible problems with environment exotic objects in the caveats section of README. If you have some ideas how to fix it - feel free to add a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants