Fixes issues with refs in the plugin. (#1005)

This commit is contained in:
Cameron Campbell 2025-04-18 16:44:11 +01:00 • committed by GitHub
parent 3bac38ee34
commit bd2ea42732
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 114 additions and 43 deletions

View file

@ -70,7 +70,7 @@ local function debugImpl(buffer, value, extendedForm)
elseif valueType == "table" then
local valueMeta = getmetatable(value)
if valueMeta ~= nil and valueMeta.__fmtDebug ~= nil then
if valueMeta ~= nil and valueMeta.__fmtDebug ~= nil then
-- This type implement's the metamethod we made up to line up with
-- Rust's 'Debug' trait.
@ -242,4 +242,4 @@ return {
debugOutputBuffer = debugOutputBuffer,
fmt = fmt,
debugify = debugify,
}
}