Skip to content

Commit

Permalink
Rename table "global" -> "shared"
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoun authored and baconpaul committed Aug 6, 2024
1 parent e38cb4c commit 1ee52c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/LuaSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool Surge::LuaSupport::setSurgeFunctionEnvironment(lua_State *L)
// stack is now func > table

// List of whitelisted functions and modules
std::vector<std::string> sandboxWhitelist = {"ipairs", "error", "math", "surge", "global"};
std::vector<std::string> sandboxWhitelist = {"ipairs", "error", "math", "surge", "shared"};
/*
std::vector<std::string> sandboxWhitelist = {"pairs", "ipairs", "next", "print",
"error", "math", "string", "table",
Expand Down

0 comments on commit 1ee52c6

Please sign in to comment.