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
Enumerable properties are made non-enumerable after deserialization.
import{deserializeError,serializeError}from'serialize-error';classMyErrorextendsError{constructor(publicparams: any){super('test');}}consterror=newMyError({name: 'foo'});constserialized=serializeError(error);constdeserialized=deserializeError(serialized)asMyError;// properties of deserialized.params are non-enumerable
Enumerable properties are made non-enumerable after deserialization.
Minimal reproduction: https://stackblitz.com/edit/typescript-dkbp39?file=index.ts
The text was updated successfully, but these errors were encountered: