We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a58c1 commit 92654fcCopy full SHA for 92654fc
src/browser/storage/cookie.zig
@@ -296,7 +296,12 @@ pub const Cookie = struct {
296
}
297
if (exp_dt) |dt| {
298
normalized_expires = @floatFromInt(dt.unix(.seconds));
299
- } else std.debug.print("Invalid cookie expires value: {s}\n", .{expires_});
+ } else {
300
+ // Algolia, for example, will call document.setCookie with
301
+ // an expired value which is literally 'Invalid Date'
302
+ // (it's trying to do something like: `new Date() + undefined`).
303
+ log.debug(.web_api, "cookie expires date", .{ .date = expires_ });
304
+ }
305
306
307
0 commit comments