From e5f47731c6b094fa1776eb313fd39bbc2ccd6463 Mon Sep 17 00:00:00 2001 From: Philipp von Weitershausen Date: Thu, 30 Apr 2015 14:18:00 -0700 Subject: [PATCH] [ReactNative] Only report console.error()s as exceptions in dev mode --- .../Initialization/InitializeJavaScriptAppEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js index 1b67c4940..bb0aa263c 100644 --- a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js +++ b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js @@ -84,7 +84,7 @@ function setupRedBoxConsoleErrorHandler() { var ExceptionsManager = require('ExceptionsManager'); var Platform = require('Platform'); // TODO (#6925182): Enable console.error redbox on Android - if (Platform.OS === 'ios') { + if (__DEV__ && Platform.OS === 'ios') { ExceptionsManager.installConsoleErrorReporter(); } }