summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index ad032655..6fa6c897 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -235,6 +235,9 @@ function mt:_markCompiled(uri, compiled)
if newCompiled == compiled then
return compiled
end
+ if not compiled then
+ compiled = {}
+ end
for k, v in pairs(newCompiled) do
compiled[k] = v
end
@@ -303,6 +306,7 @@ end
function mt:compileVM(uri)
local obj = self._file[uri]
if not obj then
+ self:_markCompiled(uri)
return nil
end
local compiled = self._needCompile[uri]