Skip to content

core-js WeakMaps are broken on React Native? #50

@gaearon

Description

@gaearon

As reported here by @davodesign84 and here, it appears that #45 broke React Native because for some reason WeakMap polyfill from core-js returns undefined:

undefined is not a constructor (evaluating 'new _weakMap2.default()')

Alas, I don’t have React Native at hand and can’t look into why this happens. We just use it like this:

import WeakMap from 'core-js/library/es6/weak-map';

I’ll be grateful if anybody can look into why this fails on RN. Possible alternatives:

  • Use a different WeakMap polyfill
  • Use a Map polyfill instead of the issue is specific to WeakMap

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions