bugfix
This commit is contained in:
parent
cd5ab62971
commit
f6ee78f824
2
live.lua
2
live.lua
|
@ -323,7 +323,7 @@ end
|
|||
function live.eval(buf, filename)
|
||||
-- We assume a program is either correct with 'return' prefixed xor not.
|
||||
-- Is this correct? Who knows! But the Lua REPL does this as well.
|
||||
local f = load('return '..buf, 'REPL')
|
||||
local f = load('return '..buf, filename or 'REPL')
|
||||
if f then
|
||||
return pcall(f)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user