Skip to content

🐛 Fix bug when providing execute without before snapshot#529

Merged
wwilsman merged 1 commit intomasterfrom
ww/fix-execute-before-snapshot
Aug 24, 2021
Merged

🐛 Fix bug when providing execute without before snapshot#529
wwilsman merged 1 commit intomasterfrom
ww/fix-execute-before-snapshot

Conversation

@wwilsman
Copy link
Copy Markdown
Contributor

What is this?

Thanks to @cancan101 for testing out the new execute features from #514 and finding a bug. When execute is provided without a beforeSnapshot option, the entire execute object is passed on to the evaluate function, which creates an unserializable function as a result.

Rather than coalesce the execute option, we can typecheck if it is a function and fallback to execute?.beforeSnapshot.

@wwilsman wwilsman added the 🐛 bug Something isn't working label Aug 24, 2021
@wwilsman wwilsman requested a review from Robdel12 August 24, 2021 21:08
@wwilsman wwilsman merged commit 4d88db0 into master Aug 24, 2021
@wwilsman wwilsman deleted the ww/fix-execute-before-snapshot branch August 24, 2021 21:16
samarsault pushed a commit that referenced this pull request Mar 3, 2023
Bumps [terser](https://github.com/terser/terser) from 5.14.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant