Skip to content

Conversation

@mstoykov
Copy link
Contributor

During a previous fix it seems that rest parameters weren't taken into consideration and currently this refers to them in the provided test.

The test in question is a very simplified variation of a real code.

It seems all of the following things are relevant for the bug to occur:

  1. method with only a rest parameter
  2. usage of this
  3. usage of the parameter
  4. All of the above within a lambda inside the method

During a previous fix it seems that rest parameters weren't taken into
consideration and currently `this` refers to them in the provided test.

The test in question is a very simplified variation of a real code.

It seems all of the following things are relevant for the bug to occur:
1. method with only a rest parameter
2. usage of `this`
3. usage of the parameter
4. All of the above within a lambda inside the method
@dop251 dop251 closed this in 4d26883 Jun 24, 2025
@dop251
Copy link
Owner

dop251 commented Jun 24, 2025

Thanks for reporting. It's a tricky spot and I hope the fix is comprehensive.

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