Removed debug shim.

This commit is contained in:
Bruce Hill 2018-06-15 00:20:27 -07:00
parent 1a6e28e835
commit f790caf0ab
2 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ do
run_lua = function(self, lua) run_lua = function(self, lua)
assert(type(lua) ~= 'string', "Attempt to run lua string instead of Lua (object)") assert(type(lua) ~= 'string', "Attempt to run lua string instead of Lua (object)")
local lua_string = tostring(lua) local lua_string = tostring(lua)
local run_lua_fn, err = load(lua_string, nil and tostring(lua.source), "t", self.environment) local run_lua_fn, err = load(lua_string, tostring(lua.source), "t", self.environment)
if not run_lua_fn then if not run_lua_fn then
local n = 1 local n = 1
local fn local fn

View File

@ -379,7 +379,7 @@ class NomsuCompiler
run_lua: (lua)=> run_lua: (lua)=>
assert(type(lua) != 'string', "Attempt to run lua string instead of Lua (object)") assert(type(lua) != 'string', "Attempt to run lua string instead of Lua (object)")
lua_string = tostring(lua) lua_string = tostring(lua)
run_lua_fn, err = load(lua_string, nil and tostring(lua.source), "t", @environment) run_lua_fn, err = load(lua_string, tostring(lua.source), "t", @environment)
if not run_lua_fn if not run_lua_fn
n = 1 n = 1
fn = -> fn = ->