Cannot add extra Javascript data on capture if Raven.setExtraContext called

I’m using the Javascript integration and if I set some general extra data using Raven.setExtraContext then any additional extra data specific to the captured error instance is ignored.

Raven.captureException(error, { extra: { location: ‘UserStore’ } });

If I comment out the initial Raven.setExtraContext then I see my location data added.

Seems like a bug? Expected behavior is to merge any extra object passed to captureException with the data already set in setExtraContext. Am I missing something?

This is exactly how it should work –
Do you mind creating an issue on GitHub and provide reproducible example?

My mistake. There was a formatting error in the JSON so it didn’t merge.