diff --git a/react-packager/src/Resolver/polyfills/error-guard.js b/react-packager/src/Resolver/polyfills/error-guard.js index 8810a4b1..d013ec11 100644 --- a/react-packager/src/Resolver/polyfills/error-guard.js +++ b/react-packager/src/Resolver/polyfills/error-guard.js @@ -20,6 +20,9 @@ var ErrorUtils = { setGlobalHandler: function(fun) { ErrorUtils._globalHandler = fun; }, + getGlobalHandler: function() { + return ErrorUtils._globalHandler; + }, reportError: function(error) { ErrorUtils._globalHandler && ErrorUtils._globalHandler(error); },