diff --git a/bitser.lua b/bitser.lua index 8f3f525..89d94a2 100644 --- a/bitser.lua +++ b/bitser.lua @@ -127,7 +127,7 @@ local function write_table(value, buffer, seen) if class then classkey = classkey_registry[class] Buffer_write_byte(buffer, 242) - write_string(class) + write_string(class, buffer) else Buffer_write_byte(buffer, 240) end