diff --git a/src/core/ReactCompositeComponent.js b/src/core/ReactCompositeComponent.js index 36d69aebf155d..78cb8843b40ea 100644 --- a/src/core/ReactCompositeComponent.js +++ b/src/core/ReactCompositeComponent.js @@ -1001,8 +1001,6 @@ var ReactCompositeComponentMixin = { this._currentContext = nextFullContext; this.context = nextContext; } - } catch (e) { - throw e; } finally { this._compositeLifeCycleState = null; } @@ -1164,9 +1162,6 @@ var ReactCompositeComponentMixin = { ReactCurrentOwner.current = this; try { renderedComponent = this.render(); - } catch (error) { - // IE8 requires `catch` in order to use `finally`. - throw error; } finally { ReactContext.current = previousContext; ReactCurrentOwner.current = null; diff --git a/src/core/ReactContext.js b/src/core/ReactContext.js index 44ff1a23c6dae..a542054c7057e 100644 --- a/src/core/ReactContext.js +++ b/src/core/ReactContext.js @@ -56,9 +56,6 @@ var ReactContext = { ReactContext.current = merge(previousContext, newContext); try { result = scopedCallback(); - } catch (error) { - // IE8 requires `catch` in order to use `finally`. - throw error; } finally { ReactContext.current = previousContext; } diff --git a/src/core/ReactUpdates.js b/src/core/ReactUpdates.js index c1d92e1f2929e..19841f2343ea5 100644 --- a/src/core/ReactUpdates.js +++ b/src/core/ReactUpdates.js @@ -79,9 +79,6 @@ function flushBatchedUpdates() { // Run these in separate functions so the JIT can optimize try { runBatchedUpdates(); - } catch (e) { - // IE 8 requires catch to use finally. - throw e; } finally { clearDirtyComponents(); } diff --git a/src/core/__tests__/ReactCompositeComponent-test.js b/src/core/__tests__/ReactCompositeComponent-test.js index b7882a335a214..fc4542b5af813 100644 --- a/src/core/__tests__/ReactCompositeComponent-test.js +++ b/src/core/__tests__/ReactCompositeComponent-test.js @@ -737,8 +737,6 @@ describe('ReactCompositeComponent', function() { ); NamedComponent(); // Shut up lint - } catch (e) { - throw e; } finally { console.warn = warn; } @@ -780,8 +778,6 @@ describe('ReactCompositeComponent', function() { 'createClass(...): `childContextTypes` is now a static property and ' + 'should be defined inside "statics".' ); - } catch (e) { - throw e; } finally { console.warn = warn; }