react-native/Libraries/vendor
Riley Dulin 85505fdd3e Fix map polyfill to use a deterministic key for the hash
Summary:
Prepack does not understand how to use a random key as an object property. Instead, at build time, it generates a deterministic property name based on a deterministic seed for `Math.random()`.

Prepack would like to move away from this, and keep all the `Math.random()` unevaluated and left in the bundle.

Since this is the only usage of `Math.random()` that can't be handled by the abstract interpreter, it should be changed.

Note that the randomness is not required here at all, it just has to be *some* unique key.

Reviewed By: davidaurelio

Differential Revision: D9882757

fbshipit-source-id: 21c213db9716d2faeb8745d811a620b088a83781
2018-09-17 15:02:24 -07:00
..
core Fix map polyfill to use a deterministic key for the hash 2018-09-17 15:02:24 -07:00
document/selection Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
emitter Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00