aboutsummaryrefslogtreecommitdiff
path: root/code_obj.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-10 15:00:01 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-10 15:00:35 -0700
commitfa72d7eeb13a356d00a0694384938c23a90529da (patch)
treee7c1515d35f3fe68e1d7561ad08280c0f250ee64 /code_obj.lua
parentde34592dbebfa8882f495694d73f2a8b1e2d0856 (diff)
Fixing up error reporting and ripping out LDT-specific code (now a
debugger can be provided by a command line flag)
Diffstat (limited to 'code_obj.lua')
-rw-r--r--code_obj.lua4
1 files changed, 2 insertions, 2 deletions
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"