From 624cf7d742aedc6bc9f9d7152a3db194f8c6a362 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Thu, 6 Jun 2013 18:59:11 +0200 Subject: [PATCH] issue #70 crash --- ldoc/doc.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 3f19a85..b1a32e7 100644 --- a/ldoc/doc.lua +++ b/ldoc/doc.lua @@ -626,6 +626,9 @@ function Item:finish() local names = List() self.subparams = {} for i,name in ipairs(original_names) do + if type(name) ~= 'string' then + self:error("declared table cannot have array entries") + end local pname,field = split_iden(name) if field then if not fields then