Update init.lua

This commit is contained in:
Vitaliy
2018-01-13 20:18:38 +03:00
committed by GitHub
parent e719ed60b8
commit 2a5ff6a564

View File

@@ -292,6 +292,7 @@ local function safe_deep_copy_helper(msg, back_references, size_limit)
if k == nil or v == nil then if k == nil or v == nil then
return nil, 0 return nil, 0
end end
ret[k] = v
cost = cost + k_cost + v_cost cost = cost + k_cost + v_cost
if cost > size_limit then if cost > size_limit then
return nil, 0 return nil, 0