Skip to content

fix: implement correct clone for JewishCalendar#33

Open
rafistrauss wants to merge 1 commit intoBehindTheMath:masterfrom
rafistrauss:fix-getUpcomingParsha
Open

fix: implement correct clone for JewishCalendar#33
rafistrauss wants to merge 1 commit intoBehindTheMath:masterfrom
rafistrauss:fix-getUpcomingParsha

Conversation

@rafistrauss
Copy link
Copy Markdown

@rafistrauss rafistrauss commented Mar 27, 2026

The getUpcomingParsha function called clone, which created a new JewishDate object instead of a JewishCalendar object. The former lacks the necessary getParsha function causing an error when called:

TypeError: clone.getParsha is not a function. (In 'clone.getParsha()', 'clone.getParsha' is undefined)

The getUpcomingParsha function called clone, which created a new JewishDate object instead of a JewishCalendar object. The former lacks the necessary getParsha function causing an error when called:

TypeError: clone.getParsha is not a function. (In 'clone.getParsha()', 'clone.getParsha' is undefined)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant