Skip to content

Commit

Permalink
put the mixins in private exec_env too
Browse files Browse the repository at this point in the history
Fixes #5699
  • Loading branch information
emptyrivers authored and InfusOnWoW committed Feb 26, 2025
1 parent 8d2ee8a commit 0ea549a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions WeakAuras/AuraEnvironment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,8 @@ local overridden = {
WeakAuras = FakeWeakAuras
}

local env_getglobal_custom
-- WORKAROUND API which return Mixin'd values need those mixin "rawgettable" in caller's fenv #5071
local exec_env_custom = setmetatable({
local mixins = {
ColorMixin = ColorMixin,
Vector2DMixin = Vector2DMixin,
Vector3DMixin = Vector3DMixin,
Expand All @@ -534,7 +533,10 @@ local exec_env_custom = setmetatable({
TransmogPendingInfoMixin = TransmogPendingInfoMixin,
TransmogLocationMixin = TransmogLocationMixin,
PlayerLocationMixin = PlayerLocationMixin,
},
}

local env_getglobal_custom
local exec_env_custom = setmetatable(CopyTable(mixins),
{
__index = function(t, k)
if k == "_G" then
Expand Down Expand Up @@ -592,7 +594,7 @@ local PrivateForBuiltIn = {
}

local env_getglobal_builtin
local exec_env_builtin = setmetatable({},
local exec_env_builtin = setmetatable(CopyTable(mixins),
{
__index = function(t, k)
if k == "_G" then
Expand Down

0 comments on commit 0ea549a

Please sign in to comment.