Update init.lua

This commit is contained in:
Vitaliy 2018-01-13 20:18:38 +03:00 committed by GitHub
parent e719ed60b8
commit 2a5ff6a564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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