From fa72d7eeb13a356d00a0694384938c23a90529da Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 10 Jul 2018 15:00:01 -0700 Subject: Fixing up error reporting and ripping out LDT-specific code (now a debugger can be provided by a command line flag) --- code_obj.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code_obj.lua') diff --git a/code_obj.lua b/code_obj.lua index d3b9260..7fa91fc 100644 --- a/code_obj.lua +++ b/code_obj.lua @@ -173,11 +173,11 @@ do __init = function(self, source, ...) self.source = source self.bits, self.indents, self.current_indent = { }, { }, 0 - self:append(...) if type(self.source) == 'string' then self.source = Source:from_string(self.source) end - return assert(self.source and Source:is_instance(self.source)) + assert(self.source and Source:is_instance(self.source)) + return self:append(...) end, __base = _base_0, __name = "Code" -- cgit v1.2.3