Skip to content

Fix env for lua5.1/luajit#347

Merged
actboy168 merged 2 commits intoactboy168:masterfrom
espkk:master
Apr 21, 2026
Merged

Fix env for lua5.1/luajit#347
actboy168 merged 2 commits intoactboy168:masterfrom
espkk:master

Conversation

@espkk
Copy link
Copy Markdown
Contributor

@espkk espkk commented Apr 10, 2026

Basically adds setfenv/getfenv support for lua5.1/luajit

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Lua 5.1 function environments (fenv) by updating the evaluation scripts, variable handling, and the C++ backend's reference value system. Feedback suggests refactoring the environment detection logic in variables.lua to eliminate redundant assignments for the default global environment.

Comment thread extension/script/backend/worker/variables.lua
@actboy168 actboy168 merged commit 650487c into actboy168:master Apr 21, 2026
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.

2 participants