You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line is not safe and breaks history.pushState and history.replaceState when state contains object(s) that do not inherit hasOwnProperty (e.g. were created with Object.create(null)).
Observed behavior
TypeError: e.hasOwnProperty is not a function
Steps to reproduce
Have auto breadcrumbs enabled and call history.pushState with a state containing object(s) that do not not inherit hasOwnProperty.
Hey @brianreavis, v3.3.1 was just released containing the fix for this. If you are using the CDN link, the latest version will be fetched automatically and should just work™. Otherwise, please manually upgrade and let me know how you get on. Cheers!
bugsnag-js/src/bugsnag.js
Line 761 in 67753db
This line is not safe and breaks
history.pushState
andhistory.replaceState
whenstate
contains object(s) that do not inherithasOwnProperty
(e.g. were created withObject.create(null)
).Observed behavior
Steps to reproduce
history.pushState
with astate
containing object(s) that do not not inherithasOwnProperty
.Version
3.x
The text was updated successfully, but these errors were encountered: