Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
Session.setup
to handle promise errors
It's possible for an `UnhandledPromiseError` to raise when restoring the session. This doesn't raise to the caller of the library but does occur as a caught exception in the browser, which in turn can be picked up by error tracking code such as sentry. This fixes #2358 which has more specific detail around the issue and how to reproduce it.
- Loading branch information