[JavaScript] Offline Errors

It seems that the behaviour of the JS client when a user is offline is not mentioned anywhere in the documentation. Can anyone explain how Sentry handles errors that occur when a user is (temporarily) offline, or errors caused by the user being offline. Are these errors saved and resent if/when the client regains connectivity or are they lost forever?