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

Error: Uncaught (in promise): Error: Out of stack space when using with Angular in IE11 #545

Closed
vanelizarov opened this issue May 13, 2019 · 5 comments

Comments

@vanelizarov
Copy link

vanelizarov commented May 13, 2019

Suddenly I've started seeing this error in IE's console:

Error: Uncaught (in promise): Error: Out of stack space
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)
   at $set (http://localhost:4200/polyfills.js:6755:7)

I'm using the following polyfills:

import 'core-js/es6/symbol'
import 'core-js/es6/object'
import 'core-js/es6/function'
import 'core-js/es6/parse-int'
import 'core-js/es6/parse-float'
import 'core-js/es6/number'
import 'core-js/es6/math'
import 'core-js/es6/string'
import 'core-js/es6/date'
import 'core-js/es6/array'
import 'core-js/es6/regexp'
import 'core-js/es6/map'
import 'core-js/es6/weak-map'
import 'core-js/es6/set'
import 'core-js/es6/weak-set'
import 'core-js/es7/array'
import 'core-js/es6/reflect'

The problem is in symbol polyfill, here's the line 6755 in compiled file:

if (this === ObjectProto) $set.call(OPSymbols, value);

Usage of Symbol function (actually it is used by one of the libs, comlinkjs):

var proxyMarker = Symbol("Comlink.proxy");
var createEndpoint = Symbol("Comlink.endpoint");
@zloirock
Copy link
Owner

Could you add a reproducible example?

@vanelizarov
Copy link
Author

vanelizarov commented May 14, 2019

@zloirock yeah, I've created a repo with demo app:
https://github.com/vanelizarov/core-js-ie11-symbol-error-demo

@zloirock
Copy link
Owner

zloirock commented May 15, 2019

That looks like usage of symbols on environment exotic objects with custom internal [[Set]] method like in #163 / #387 / #490.

@zloirock
Copy link
Owner

Closed since it's documented for a long time:

Some problems possible with environment exotic objects

If you know a simple way of fixing this problem feel free to propose it.

@vanelizarov
Copy link
Author

@zloirock unfortunately, I could not resolve this issue. I’ve tried Symbol.useSimple(), but it did not help. I think we can stop here and close issue

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

No branches or pull requests

2 participants