Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Accept infinite function paramaters #25

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

Merged
ppaska merged 3 commits into jspython-dev:DEV-v2 from appleplectic:DEV-v2
Jun 18, 2022
Merged

Accept infinite function paramaters #25

ppaska merged 3 commits into jspython-dev:DEV-v2 from appleplectic:DEV-v2
Jun 18, 2022

Conversation

Copy link
Contributor

@appleplectic appleplectic commented Jun 14, 2022

No description provided.

ghostey44 and emirkmo reacted with thumbs up emoji
Copy link
Contributor

ppaska commented Jun 14, 2022

Very good catch @appleplectic . Thanks for that.
I will be happy to accept your PR. But, there is one other place that needs to be changed. Please have a look at evaluatorAsync

private async invokeFunctionAsync(func: (...args: unknown[]) => unknown, fps: unknown[],

At the moment, evaluator and evaluatorAsync contain duplicated logic. This will be refactored in the nearest future. But, for now, we have to maintain the same logic in both files.

Thanks,
Pavlo

Copy link
Contributor

@ppaska ppaska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please apply the same changes to invokeFunctionAsync

private async invokeFunctionAsync(func: (...args: unknown[]) => unknown, fps: unknown[],

Copy link
Contributor

@ppaska ppaska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

evaluatorAsync needs to be changed as well

private async invokeFunctionAsync(func: (...args: unknown[]) => unknown, fps: unknown[],

Copy link

@appleplectic is not spreading the correct parameter. He is spreading args when he should be spreading fps

Copy link
Contributor Author

@appleplectic appleplectic left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the other function and spread fps

@ppaska ppaska merged commit a26f5d2 into jspython-dev:DEV-v2 Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ppaska ppaska ppaska requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /