Skip to content

Commit

Permalink
fixed util.inline - context was being overridden in strange ways. Per…
Browse files Browse the repository at this point in the history
…formance is now terrible...but have to wait for lusty 1.0 to fix.
  • Loading branch information
DorianGray committed May 5, 2014
1 parent 97ff69c commit ca6585f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ local inlineMeta = {
local function inline(name, env)
local file = loaded[name]
if not file then
file = loader(name)
file = string.dump(loader(name))
loaded[name] = file
end
file = loadstring(file)
if type(file) == 'string' then
error(file)
end
Expand Down

0 comments on commit ca6585f

Please sign in to comment.