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

Bugfix/xpcall number args #467

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

waschik
Copy link
Contributor

@waschik waschik commented Dec 14, 2023

Fixes #464.

Pass function arguments. Previously the function was called always with zero arguments.

@coveralls
Copy link

coveralls commented Dec 14, 2023

Coverage Status

coverage: 89.622% (-0.001%) from 89.623%
when pulling c1aa69d on waschik:bugfix/xpcall-number-args
into 2348fd0 on yuin:master.

errfunc := L.CheckFunction(2)

L.Remove(2)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yuin I am nut sure if removing element is fine. But as fare as I understand at the end of baseXPCall all arguments are anyway removed from stack.

So removing is a bit simpler then manually duplicate all arguments. For performance there is no use because remove will be sure no improvement because remove will also copy values.

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.

stuck when xpcall
2 participants