From ce86f4b0ea04e8d37bfc37364f6a6d8e51612ce4 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 10 Jan 2015 17:08:14 +0000 Subject: [PATCH] Fixed nil iterator in internal getiter() --- lume.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lume.lua b/lume.lua index 38ae4e3..0d38aad 100644 --- a/lume.lua +++ b/lume.lua @@ -46,9 +46,13 @@ local isarray = function(x) return (x and x[1]) and true or false end +local iternil = function() + return noop +end + local getiter = function(x) if x == nil then - return noop + return iternil elseif isarray(x) then return ipairs else