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
If it matters, the underlying issue is in Buffer.prototype.write() (which is called by the constructor in this case) and not specific to the constructor.
Additionally, it seems to me that TypeError is the wrong error to throw here. A TypeError might be if something that was not a string was supplied. But an incorrectly formatted string is not a TypeError, or at least it seems to me.
This seems confusing