Fix bad serialization of Date objects

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3283
This commit is contained in:
Raymond Hill 2024-06-28 13:40:19 -04:00
parent 57ed293760
commit c154aaa69c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 1 deletions

View File

@ -592,7 +592,8 @@ const _serialize = data => {
return;
}
if ( xtypeInt === I_DATE ) {
writeBuffer.push(C_DATE + _serialize(data.getTime()));
writeBuffer.push(C_DATE);
_serialize(data.getTime());
return;
}
// Reference to composite types