diff options
| author | OpportunityLiu <[email protected]> | 2019-06-19 12:11:51 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-19 12:11:51 +0800 |
| commit | 509475b2b68e420be7f915755806b3ec9bf7282f (patch) | |
| tree | 7e345936871c55289ff48492e00abafd40584d8d | |
| parent | 5e9301d37938e2c8e4b277498309fa3bacf80252 (diff) | |
fix
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua b/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua index cdc0c9b4c..187cf7434 100644 --- a/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua +++ b/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua @@ -32,14 +32,14 @@ local dump = require("base/dump") -- print variables for interactive mode function sandbox_core_sandbox._interactive_dump(v0, ...) - local values = {v0, ...} + local values = { v0, ... } if #values <= 1 then -- in case v0 is nil dump(v0, "< ") io.write("\n") else for i, v in ipairs(values) do - dump(v, "<" .. (i<10 and (i .. " ") or (i .. " "))) + dump(v, "<" .. ((i < 10) and (i .. " ") or (i .. " "))) io.write("\n") end end @@ -54,7 +54,8 @@ function sandbox_core_sandbox.interactive() raise("cannot get sandbox instance!") end - -- fork a new sandbox + -- fork a new sandbox + local errors instance, errors = instance:fork() if not instance then raise(errors) |
