react-native/Libraries
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
..
ART Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ActionSheetIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Alert Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Animated Optimize gitignores 2018-09-15 09:01:59 -07:00
AppState Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BatchedBridge Improve the bridge params validator, and its invariant string 2018-09-12 19:10:16 -07:00
Blob Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BugReporting Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
CameraRoll Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Color Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Components Add iOS 12 textContentType options (#21079) 2018-09-13 14:48:05 -07:00
Core Add js engine information in React Native error reporting 2018-09-12 14:01:50 -07:00
EventEmitter Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Experimental Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Geolocation Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Image Back out "Change ImageBackground to work with percentage image sizes" 2018-09-12 12:31:52 -07:00
Inspector Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Interaction Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSInspector Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LayoutAnimation Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Linking Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LinkingIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Lists Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Modal Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NativeAnimation Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Network fix RCTNetInfo first time connection status (#20820) 2018-09-12 14:01:50 -07:00
Performance Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
PermissionsAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
PushNotificationIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTTest Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ReactNative Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Renderer React sync for revisions bc1ea9c...ade5e69 2018-09-10 14:47:11 -07:00
Sample Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Settings Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Share Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Storage Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
StyleSheet Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SurfaceBackedComponent Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SurfaceHostingComponent Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Text Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Types Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Utilities Fix dev-only redbox in polyfillfunctions 2018-09-12 16:32:50 -07:00
Vibration Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
WebSocket Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Wrapper Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
YellowBox YellowBox: Allow Retrying Symbolication 2018-09-11 20:47:03 -07:00
fishhook Merge fishhook.xcodeproj in RCTWebSocket 2017-08-09 07:48:09 -07:00
polyfills Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
react-native Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
vendor Fix map polyfill to use a deterministic key for the hash 2018-09-17 15:02:24 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
UTFSequence.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
promiseRejectionIsError.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00