Skip to content

Conversation

@gi
Copy link
Owner

@gi gi commented Aug 12, 2025

This fixes an issue where mini_racer does not support serializing javascript functions nested in objects, such as in the options hash of helper function.

To avoid this issue, redefine any functions with a generic "function" string.

TODO: In the future, we can build a method to call these functions.

This fixes an issue where `mini_racer` does not support serializing javascript
functions nested in objects, such as in the options hash of helper function.

To avoid this issue, redefine any functions with a generic `"function"` string.

TODO: In the future, we can build a method to call these functions.
@gi gi merged commit 4ee07c4 into develop Aug 12, 2025
13 checks passed
@gi gi deleted the issue-25-ruby-helper-function-options branch August 12, 2025 04:18
gi added a commit that referenced this pull request Aug 12, 2025
### Changed
- `engine`: fixed issue with serialization of functions ([#26](#26))
- `engine`: include optional logging ([#24](#24))
- `ci`: test against macOS 14, Ubuntu 22.04, and ruby 3.1-3.4 ([#27](#27))
This was referenced Aug 12, 2025
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.

2 participants