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

Add behavioral test for binding bug with view function calls on array items #609

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

ericyhwang
Copy link
Contributor

As part of moving to ESLint in the derby-2 branch, there was refactoring that introduced an issue with view functions using array items as one of many arguments, e.g. viewFn(#item, someOtherPath):
https://github.com/derbyjs/derby/pull/604/files#diff-466e85435a395f659e185303f111e9c7a0e4dd4f3e08400eed586fabb0814141R260

The bug was fixed in ba742f6.

This adds a behavioral binding test that failed without the bugfix, and now passes with the bugfix included.

I'm not entirely certain how the presence of the second param triggered the bug. I suspect it's something related to the dependency structure being different with two+ params instead of just one param.

@ericyhwang ericyhwang requested a review from craigbeck October 27, 2022 22:36
@ericyhwang ericyhwang merged commit cdefe3c into derby-2 Nov 2, 2022
@ericyhwang ericyhwang deleted the test-array-item-function branch November 2, 2022 19:40
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