Skip to content

fix(esx_lib): stop the table module from overwriting the stdlib#1802

Merged
N0tNvll merged 1 commit into
esx-framework:1.14.0from
ASTROWwwW:fix/xlib-table-clobber
Jul 17, 2026
Merged

fix(esx_lib): stop the table module from overwriting the stdlib#1802
N0tNvll merged 1 commit into
esx-framework:1.14.0from
ASTROWwwW:fix/xlib-table-clobber

Conversation

@ASTROWwwW

Copy link
Copy Markdown
Contributor

xLib.table = table aliases the stdlib instead of copying it, so every function xLib.table.X() overwrites the real table.X. sort, concat, wipe and clone collide.

sort is the one that bites: its body calls table.sort(keys), which resolves to itself and recurses until the stack blows. Loading a player hits it at es_extended/server/main.lua:266.

Namespacing leaves the stdlib alone. __index still falls through for insert, remove and unpack.

@N0tNvll
N0tNvll self-requested a review July 17, 2026 04:46
@N0tNvll N0tNvll self-assigned this Jul 17, 2026
@N0tNvll N0tNvll added the enhancement New feature or request label Jul 17, 2026
@N0tNvll
N0tNvll merged commit e4ec1a6 into esx-framework:1.14.0 Jul 17, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants