Skip to content

Commit f23a0ca

Browse files
committed
remove es6 usage
1 parent ee6fc59 commit f23a0ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/react-native.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ function reactNativePlugin(Raven) {
7171

7272
var defaultHandler = (ErrorUtils.getGlobalHandler && ErrorUtils.getGlobalHandler())
7373
|| ErrorUtils._globalHandler;
74-
ErrorUtils.setGlobalHandler(function(...args){
75-
defaultHandler(...args);
76-
Raven.captureException(...args);
74+
ErrorUtils.setGlobalHandler(function(){
75+
var error = arguments[0];
76+
defaultHandler.apply(this, arguments)
77+
Raven.captureException(error);
7778
});
7879
}
7980

0 commit comments

Comments
 (0)