Skip to content

fix: [#4860] Adaptive expression context access with non-standard objects #4876

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ceciliaavila
Copy link
Collaborator

Fixes #4860

Description

This PR fixes an issue in the accessProperty function using toLowerCase to search for property names within an instance. This code was likely ported from C#, but in JS, property names are case-sensitive, which can lead to unexpected results.

Specific Changes

  • Removed the toLowerCase search in accessProperty function.
  • Fix casing errors in unit tests and added a test case for this scenario.

Testing

This image shows the unit tests passing after the changes and the new test case added.
image

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.

Adaptive expression context access with non-standard objects
1 participant