Remove rethrowCaughtError injection (#9252)
Dan Abramov committed
Mar 24, 2017 at 18:19 UTC
0a41890eaa018a3509912c12df6c4f24fc0a3200
1 file changed
-5
src/renderers/shared/utils/ReactErrorUtils.js
-5
@@ -92,12 +92,7 @@ const ReactErrorUtils = {
92
typeof injectedErrorUtils.invokeGuardedCallback === 'function',
93
'Injected invokeGuardedCallback() must be a function.',
94
);
95
- invariant(
96
- typeof injectedErrorUtils.rethrowCaughtError === 'function',
97
- 'Injected rethrowCaughtError() must be a function.',
98
- );
95
invokeGuardedCallback = injectedErrorUtils.invokeGuardedCallback;
100
- rethrowCaughtError = injectedErrorUtils.rethrowCaughtError;
96
},
97
},
98