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

fix(argcount) fix n if too low #17

Merged
merged 1 commit into from
Aug 27, 2022
Merged

fix(argcount) fix n if too low #17

merged 1 commit into from
Aug 27, 2022

Conversation

Tieske
Copy link
Member

@Tieske Tieske commented Aug 27, 2022

With Luassert, an assertion is responsible for passing the args
to 'say'. The args table is often passed along from the internal
luassert one to 'say'. If, for some messages, an extra argument is
inserted, and the assertion does not increase the existing 'n' field
on that table, then 'say' will use 'n' and be one argument short.

This is an urgent fix, since it broke some CI. Busted doesn't have the say version pinned, so even older versions of Busted will install the recently released version and will break.

With Luassert, an assertion is responsible for passing the args
to 'say'. The args table is often passed along from the internal
luassert one to 'say'. If, for some messages, an extra argument is
inserted, and the assertion does not increase the existing 'n' field
on that table, then 'say' will use 'n' and be one argument short.
@Tieske Tieske requested a review from alerque August 27, 2022 00:18
@alerque alerque merged commit 3f1ed8d into master Aug 27, 2022
@alerque alerque deleted the fix/argcount branch August 27, 2022 07:22
@Tieske Tieske mentioned this pull request Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants