From 1c40c7d646d6ba12b5aeca3c396aa0fb6fcac6c3 Mon Sep 17 00:00:00 2001 From: Ben Vinegar Date: Tue, 12 Jan 2016 11:43:49 -0800 Subject: [PATCH] Fix bad `this` value in React native plugin (fixes #468) --- plugins/react-native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/react-native.js b/plugins/react-native.js index 1ce887f97eb3..9100214b4a6c 100644 --- a/plugins/react-native.js +++ b/plugins/react-native.js @@ -69,7 +69,7 @@ function reactNativePlugin(Raven) { } }); - ErrorUtils.setGlobalHandler(Raven.captureException); + ErrorUtils.setGlobalHandler(Raven.captureException.bind(Raven)); } module.exports = reactNativePlugin;