react-native/React/Profiler
Nick Lockwood 7419a82bd7 Handle bad JSON data without crashing
Summary:
public
NSJSONSerialization throws an exception when it encounters bad JSON data, including NaN values, which may not be a programming error.

This diff adds code to catch those exceptions and convert to an error. Also, if no error handling is in place, RCTJSONStringify will now display a redbox, and attempt to recover by sanitizing the JSON data and retrying.

Reviewed By: javache

Differential Revision: D2854778

fb-gh-sync-id: 18e6990af0d91083496d6a0b75c31a94ed9454a5
2016-01-26 06:13:29 -08:00
..
RCTFPSGraph.h Introduce Perf Monitor 2015-10-23 10:56:56 -07:00
RCTFPSGraph.m Introduce Perf Monitor 2015-10-23 10:56:56 -07:00
RCTJSCProfiler.h Introduce JSC profiler API 2015-12-15 03:12:32 -08:00
RCTJSCProfiler.m Introduce JSC profiler API 2015-12-15 03:12:32 -08:00
RCTMacros.h Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07:00
RCTPerfMonitor.m Rename RCTContextExecutor to RCTJSCExecutor 2015-12-16 02:51:28 -08:00
RCTProfile.h revert D2773664 2016-01-04 23:52:51 -08:00
RCTProfile.m Handle bad JSON data without crashing 2016-01-26 06:13:29 -08:00
RCTProfileTrampoline-arm.S Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
RCTProfileTrampoline-arm64.S Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
RCTProfileTrampoline-i386.S Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
RCTProfileTrampoline-x86_64.S Preserve all return registers on x86_64 trampoline 2015-12-07 06:43:28 -08:00