From 930d522fbc3ab57faa926ed85f0d35d661722402 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 27 Aug 2018 13:38:58 -0700 Subject: Bunch of miscellaneous changes. Paved the way a little bit for having different compiler domains. --- code_obj.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'code_obj.lua') diff --git a/code_obj.lua b/code_obj.lua index 11f78b2..686cc7f 100644 --- a/code_obj.lua +++ b/code_obj.lua @@ -132,13 +132,13 @@ do _continue_0 = true break end - bits[#bits + 1] = b if b.is_code then b.dirty = error end if type(b) ~= 'string' and not (type(b) == 'table' and b.is_code) then b = repr(b) end + bits[#bits + 1] = b _continue_0 = true until true if not _continue_0 then @@ -210,10 +210,13 @@ do end for i = 1, n do local b = select(i, ...) - bits[i] = b if b.is_code then b.dirty = error end + if type(b) ~= 'string' and not (type(b) == 'table' and b.is_code) then + b = repr(b) + end + bits[i] = b end return self:dirty() end, -- cgit v1.2.3