I am debugging a weird problem that I notice on my application's logs, but is unable to reproduce. My app goes something like this:
if (typeof document.cookie !== 'string')
throw new TypeError('how can this happen?');
In theory, this should never happen. However, I found log entries that indicates for a particular user, he does get this error; however, I have no idea how that can be possible. The user is using Windows Chrome /91.0.4472.124.
I cannot reproduce the error and I am running out of ideas on what it could be. Can anyone think of possible ways this could happen?