1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-03 02:37:21 +02:00

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

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