Removed debug shim.
This commit is contained in:
parent
1a6e28e835
commit
f790caf0ab
@ -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
|
||||||
|
@ -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 = ->
|
||||||
|
Loading…
Reference in New Issue
Block a user