From c08f169e911fda698aa54b0384d571bc5fe5e84c Mon Sep 17 00:00:00 2001 From: Jasmijn Wellner Date: Sat, 26 Dec 2020 15:15:53 +0100 Subject: [PATCH] Do not try to serialize metatables for class instances --- bitser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitser.lua b/bitser.lua index 6bb54f8..e929baa 100644 --- a/bitser.lua +++ b/bitser.lua @@ -221,7 +221,7 @@ local function write_table(value, seen) serialize_value(v, seen) end end - if metatable then + if metatable and not classname then serialize_value(metatable, seen) end end