case MarshalledId.Date: return <any>new Date(obj.source);
}
if (
obj instanceof VSBuffer
|| obj instanceof Uint8Array
) {
// eslint-disable-next-line local/code-no-any-casts
return <any>obj;
}
if (Array.isArray(obj)) {
for (let i = 0; i < obj.length; ++i) {
obj[i] = revive(obj[i], depth + 1);
}
// walk object
for (const key in obj) {