aboutsummaryrefslogtreecommitdiff
path: root/code_obj.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-08-27 13:38:58 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-08-27 13:39:22 -0700
commit930d522fbc3ab57faa926ed85f0d35d661722402 (patch)
tree8c91c71728b43b4e1817ed182c39bf991cb4b2a9 /code_obj.lua
parentc6a7b0be9ebdddb58a03749705987cb3058060d3 (diff)
Bunch of miscellaneous changes. Paved the way a little bit for having
different compiler domains.
Diffstat (limited to 'code_obj.lua')
-rw-r--r--code_obj.lua7
1 files changed, 5 insertions, 2 deletions
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,