Skip to content

fix(cli): preserve chunk names for inline -e scripts - #2

Merged
Xyraniz merged 3 commits into
mainfrom
Xyraniz-patch-1
Sep 20, 2026
Merged

Xyraniz merged 3 commits into
mainfrom
Xyraniz-patch-1

Conversation

@Xyraniz

@Xyraniz Xyraniz commented Sep 20, 2026

Copy link
Copy Markdown
Owner

The CLI -e path passed the chunk name in the size parameter to luaL_loadbuffer, leaving the diagnostic name undefined.

This fixes the argument order and adds regression coverage for inline execution and syntax-error locations.

Xyraniz and others added 3 commits September 19, 2026 21:48
Fix -e chunk loading so the inline source length is passed separately from its diagnostic chunk name. The regression coverage verifies successful execution and syntax-error reporting.

Co-authored-by: CoinBaseSupp <239860209+CoinBaseSupp@users.noreply.github.com>
Add regression coverage for -e execution and diagnostic chunk names.

Co-authored-by: CoinBaseSupp <239860209+CoinBaseSupp@users.noreply.github.com>
Align the regression assertion with the CLI diagnostic format while preserving the chunk-name check.

Co-authored-by: CoinBaseSupp <239860209+CoinBaseSupp@users.noreply.github.com>
@Xyraniz
Xyraniz merged commit 6cfaa09 into main Sep 20, 2026
5 checks passed
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.

1 participant