Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent lookup of function object properties #692

Merged
merged 1 commit into from
May 9, 2024

Conversation

andrew-coleman
Copy link
Member

A lambda function is represented internally as a javascript object. A check needs to be added to the lookup function to only expose properties if they are a non-function object. Similar to the check that already exists in the keys function.

Resolves #691

A lambda function is represented internally as a javascript object.  A check needs to be added to the `lookup` function to only expose properties if they are a non-function object.  Similar to the check that already exists in the `keys` function.

Signed-off-by: andrew-coleman <[email protected]>
@mattbaileyuk mattbaileyuk merged commit 4446161 into master May 9, 2024
7 checks passed
@mattbaileyuk mattbaileyuk deleted the function_objects branch May 9, 2024 09:02
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.

JSONata leaks internal references in expression when using lambdas
2 participants