React-native: map constructor does not accept arguments

Created on 18 Oct 2015  路  3Comments  路  Source: facebook/react-native

Doing this: new Map([[1, 1]]) leads to the error Map constructor does not accept arguments being thrown while running in jscore. It works fine in chrome, though its using v8's native Map.

Shouldn't babel insert the core-js polyfill, which should make jscore standard compliant?

Locked

All 3 comments

I'm in pto for two weeks, won't look into it sorry :(

No problem, I think I found out why that is. Probably because of #2000.
So for now I just have to stick the data types JSC supports natively.

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/map-constructor-does-not-accept-arguments

ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.

Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aniss picture aniss  路  3Comments

lazywei picture lazywei  路  3Comments

josev55 picture josev55  路  3Comments

axelg12 picture axelg12  路  3Comments

TrakBit picture TrakBit  路  3Comments