Skip to content

Commit

Permalink
fix(shouldEval): Avoid recursion into POSIXlt objects
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Nov 27, 2023
1 parent de342f4 commit 57f407e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 57f407e

Please sign in to comment.