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

toString comparison breaks if object has toString that isn't a function #141

Open
master-elodin opened this issue Sep 22, 2023 · 1 comment

Comments

@master-elodin
Copy link

If there is data passed into equals that has toString as a field that's not a function, equals breaks because it tries to call it as a function.

Example data:
{ field: "status", fieldtype: "jira", fieldId: "status", from: "10000", fromString: "To Do", to: "3", toString: "In Progress" }

I know that it's not ideal to have a field named toString, but this is external data that I don't have any control over.

@master-elodin
Copy link
Author

Actually, it looks like there's a PR that's been open for this since August 2022 - #134

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

No branches or pull requests

1 participant