From 57f407e1cb8ab27e3ca9225c2f58c974a8aa9f98 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 27 Nov 2023 13:12:29 -0500 Subject: [PATCH] fix(shouldEval): Avoid recursion into POSIXlt objects --- R/utils.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/utils.R b/R/utils.R index 946b5a2..ef582ea 100644 --- a/R/utils.R +++ b/R/utils.R @@ -162,6 +162,7 @@ JSEvals <- function(list) { #' @keywords internal shouldEval <- function(options) { if (is.list(options)) { + if (inherits(options, "POSIXlt")) return(FALSE) if ((n <- length(options)) == 0) return(FALSE) # use numeric indices as names (remember JS indexes from 0, hence -1 here) if (is.null(names(options)))