From c154aaa69c6a2a4009d43923f1097c6298062b82 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 28 Jun 2024 13:40:19 -0400 Subject: [PATCH] Fix bad serialization of Date objects Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3283 --- src/js/s14e-serializer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/s14e-serializer.js b/src/js/s14e-serializer.js index 0c9200ebcaa14..8ef715a23ac10 100644 --- a/src/js/s14e-serializer.js +++ b/src/js/s14e-serializer.js @@ -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