aboutsummaryrefslogtreecommitdiffstats
path: root/src/theming/lua-lib/expect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/theming/lua-lib/expect.lua')
-rw-r--r--src/theming/lua-lib/expect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theming/lua-lib/expect.lua b/src/theming/lua-lib/expect.lua
index f4cade7..9afbb49 100644
--- a/src/theming/lua-lib/expect.lua
+++ b/src/theming/lua-lib/expect.lua
@@ -94,7 +94,7 @@ end
-- @throws If the field is not one of the allowed types.
local function field(tbl, index, ...)
expect(1, tbl, "table")
- expect(2, index, "string")
+ expect(2, index, "string", "number")
local value = tbl[index]
local t = native_type(value)