From ca6585f8d463c5fd439f6ad46d5f9c4da8edf223 Mon Sep 17 00:00:00 2001 From: Drew Date: Mon, 5 May 2014 09:37:58 -0700 Subject: [PATCH] fixed util.inline - context was being overridden in strange ways. Performance is now terrible...but have to wait for lusty 1.0 to fix. --- src/util.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.lua b/src/util.lua index ad73a09..b1c69ed 100644 --- a/src/util.lua +++ b/src/util.lua @@ -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