From 27899615963df5e801874765aa7c7515658ca591 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Fri, 12 Aug 2022 16:30:00 -0700 Subject: [PATCH] Skip invalid timestamps in declare() --- lib/sandbox.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sandbox.ts b/lib/sandbox.ts index c197301..58f36db 100644 --- a/lib/sandbox.ts +++ b/lib/sandbox.ts @@ -255,6 +255,7 @@ function declare( } for (const [attrName, attrTimestamp] of Object.entries(timestamps)) { + if (!(attrTimestamp >= 1)) continue; if (attrName === "path") { declaration.pathGet = attrTimestamp; } else {