summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script-beta/vm/eachRef.lua8
-rw-r--r--test-beta/references/init.lua5
2 files changed, 9 insertions, 4 deletions
diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua
index cfb2bef8..cc004c20 100644
--- a/script-beta/vm/eachRef.lua
+++ b/script-beta/vm/eachRef.lua
@@ -234,10 +234,10 @@ local function asArg(source, callback)
end
end)
end
- end
- local recvs = getCallRecvs(call)
- if recvs and recvs[1] then
- vm.eachRef(recvs[1], callback)
+ local recvs = getCallRecvs(call)
+ if recvs and recvs[1] then
+ vm.eachRef(recvs[1], callback)
+ end
end
end
end
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index 98758c1a..896997b6 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -131,6 +131,11 @@ end
TEST [[
local mt = {}
+local <?obj?> = setmetatable({}, mt)
+]]
+
+TEST [[
+local mt = {}
mt.x = 1
local obj = setmetatable({}, mt)
print(obj.<?x?>)