es-shims / get-own-property-symbols

ES6 Object.getOwnPropertySymbols partial polyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Out of Stack Space yet again

scott-thrillist opened this issue · comments

Anyone having this issue with the latest version? Tested on an actual machine and browserstack:

setAndGetSymbol = function (uid) {
  var descriptor = {
    enumerable: false,
    configurable: true,
    get: get,
    set: function (value) {
      setDescriptor(this, uid, {  // <--- IE11 stack overflows here
        enumerable: false,
        configurable: true,
        writable: true,
        value: value
      });
      addInternalIfNeeded(this, uid, true);
    }
  };
  defineProperty(ObjectProto, uid, descriptor);
  return freeze(source[uid] = defineProperty(
    Object(uid),
    'constructor',
    sourceConstructor
  ));
},

Can you provide any stack trace or context? Any idea what’s triggering the recursion?

or perhaps this is a duplicate of #10?

Thanks for the quick response. Not sure why this was an issue but I ended up going with react-app-polyfill/ie11 in my Next.js app and it seemed to solve almost everything. Cheers