From 3c4cbff4d88892f153b70ccbbc69d1087ecbcc49 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 13 Dec 2023 17:32:53 +0800 Subject: add yue.format() function. fix yue ast to code function issues. --- src/yue_wasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yue_wasm.cpp') diff --git a/src/yue_wasm.cpp b/src/yue_wasm.cpp index 4a054e6..daa5757 100644 --- a/src/yue_wasm.cpp +++ b/src/yue_wasm.cpp @@ -138,7 +138,7 @@ std::string exec(const std::string& codes) { }; execStr(R"yuescript( -_G.__output = {} +_G.__output = [] _G.print = (...)-> _G.__output[] = table.concat [tostring select i, ... for i = 1, select "#", ...], " " _G.__output[] = "\n" -- cgit v1.2.3-55-g6feb