From 75aee7a23c96ff31aa9fcb7608891c33a011d6a1 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 31 Jul 2025 11:49:20 +0200 Subject: Lua: use proper interface functions to access the CommonState. - The `PANDOC_STATE` is no longer a userdata object, but a table that behaves like the old object. - Log messages in `PANDOC_STATE.log` are now in temporal order. --- pandoc-lua-engine/test/lua/module/globals.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pandoc-lua-engine/test/lua/module/globals.lua') diff --git a/pandoc-lua-engine/test/lua/module/globals.lua b/pandoc-lua-engine/test/lua/module/globals.lua index 4df133e46..11b003981 100644 --- a/pandoc-lua-engine/test/lua/module/globals.lua +++ b/pandoc-lua-engine/test/lua/module/globals.lua @@ -110,8 +110,8 @@ return { }, group 'PANDOC_STATE' { - test('is a userdata object', function () - assert.are_equal(type(PANDOC_STATE), 'userdata') + test('is a table object', function () + assert.are_equal(type(PANDOC_STATE), 'table') end), test('has property "input_files"', function () assert.are_equal(type(PANDOC_STATE.input_files), 'table') -- cgit v1.2.3