1
7
Fork
You've already forked debugger.lua
0

Forward all args from dbg.assert to lua_assert #90

Merged
GavinHigham merged 2 commits from master into master 2025年05月13日 00:20:26 +02:00
GavinHigham commented 2025年03月26日 19:10:53 +01:00 (Migrated from github.com)
Copy link

Lua's assert returns all provided arguments if there is no error - this change tries to match Lua's behavior.

Before this change, local a, b, c = dbg.assert('a', 'b', 'c') would make the values a, b, c == 'a', 'assertion failed!', nil.

Lua's assert returns all provided arguments if there is no error - this change tries to match Lua's behavior. Before this change, `local a, b, c = dbg.assert('a', 'b', 'c')` would make the values `a, b, c == 'a', 'assertion failed!', nil`.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slembcke/debugger.lua!90
Reference in a new issue
slembcke/debugger.lua
No description provided.
Delete branch "master"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?