From dae10753450c75af10c300dbaf00653b15a27e87 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 5 Jul 2019 18:49:12 +0800 Subject: improve dump --- xmake/core/sandbox/modules/utils.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xmake/core/sandbox/modules/utils.lua') diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index 7e3129fcb..a81c84ded 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -189,9 +189,8 @@ function sandbox_utils.confirm(opt) end -- dump value -function sandbox_utils.dump(value, indent) - return utils.dump(value, indent) -end +-- do not change to a function call to utils.dump since debug.getinfo is called in utils.dump to get caller info +sandbox_utils.dump = utils.dump -- return module return sandbox_utils -- cgit v1.3.1