Skip to content

Commit c154aaa

Browse files
committedJun 28, 2024
Fix bad serialization of Date objects
Related issue: uBlockOrigin/uBlock-issues#3283
1 parent 57ed293 commit c154aaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/js/s14e-serializer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ const _serialize = data => {
592592
return;
593593
}
594594
if ( xtypeInt === I_DATE ) {
595-
writeBuffer.push(C_DATE + _serialize(data.getTime()));
595+
writeBuffer.push(C_DATE);
596+
_serialize(data.getTime());
596597
return;
597598
}
598599
// Reference to composite types

0 commit comments

Comments
 (0)