Changeset

9484:1d1541630c20

util.serialization: Use '=' prefix for chunk source description Like in bd5e4485a245
author Kim Alvefur <zash@zash.se>
date Thu, 11 Oct 2018 23:00:45 +0200
parents 9483:903e0cfd4cc9
children 9485:c667887d78ad
files util/serialization.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/serialization.lua	Thu Oct 11 22:59:26 2018 +0200
+++ b/util/serialization.lua	Thu Oct 11 23:00:45 2018 +0200
@@ -262,7 +262,7 @@
 local function deserialize(str)
 	if type(str) ~= "string" then return nil; end
 	str = "return "..str;
-	local f, err = envload(str, "@data", {});
+	local f, err = envload(str, "=serialized data", {});
 	if not f then return nil, err; end
 	local success, ret = pcall(f);
 	if not success then return nil, ret; end