aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-20 15:22:03 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-20 15:22:06 -0700
commitd73cbf0aa5c9081d965e06822f4958aa5c1871e6 (patch)
tree776740bfa4b47bd7983efd3d332da3c14b97bb49 /nomsu_compiler.moon
parentc1cec2ac8487bf7486b1ab85d24252d6658b3dfc (diff)
Cleanups.
Diffstat (limited to 'nomsu_compiler.moon')
-rw-r--r--nomsu_compiler.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index 4d7b4cf..8226db4 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -339,7 +339,7 @@ with NomsuCompiler
.run_lua = (lua, source=nil)=>
lua_string = tostring(lua)
- run_lua_fn, err = load(lua_string, tostring(source or lua.source), "t", self)
+ run_lua_fn, err = load(lua_string, nil and tostring(source or lua.source), "t", self)
if not run_lua_fn
line_numbered_lua = concat(
[format("%3d|%s",i,line) for i, line in ipairs get_lines\match(lua_string)],