From d2dbf4e0edf7167c036a6346f974750ee1749d2d Mon Sep 17 00:00:00 2001 From: Philipp von Weitershausen Date: Thu, 23 Apr 2015 10:42:00 -0700 Subject: [PATCH] [ReactNative] Disable console.error => redboxes to unwedge Android --- .../src/DependencyResolver/haste/polyfills/console.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packager/react-packager/src/DependencyResolver/haste/polyfills/console.js b/packager/react-packager/src/DependencyResolver/haste/polyfills/console.js index 4f513f45b..11464cce5 100644 --- a/packager/react-packager/src/DependencyResolver/haste/polyfills/console.js +++ b/packager/react-packager/src/DependencyResolver/haste/polyfills/console.js @@ -60,7 +60,11 @@ if (global.reportException && level === LOG_LEVELS.error) { var error = new Error(str); error.framesToPop = 1; - global.reportException(error); + // TODO(sahrens): re-enable this when we have a way to turn + // it off by default for MAdMan/Android, and/or all + // consumers of console.error() are fixed, including + // CatalystErrorHandlerModuleTestCase + // global.reportException(error); } }; }