aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/tables.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-24 22:13:08 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-24 22:13:08 +0800
commit303834e1b1e6cd9cae64b66c2ae44dcd7185238f (patch)
tree519f6a1debcc5791d35e06dc5cbb1ce22f9cfd31 /spec/outputs/tables.lua
parenteb367126bf3a4f5b0e51ccef93b7c7136bea170e (diff)
downloadyuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.gz
yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.bz2
yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.zip
add option --target=5.1 to generate Lua 5.1 compatible codes. add const destructure. make import item const by default.
Diffstat (limited to 'spec/outputs/tables.lua')
-rw-r--r--spec/outputs/tables.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/outputs/tables.lua b/spec/outputs/tables.lua
index 1d28a43..e9df1c4 100644
--- a/spec/outputs/tables.lua
+++ b/spec/outputs/tables.lua
@@ -187,18 +187,18 @@ k = {
187 ["hello"] = "world", 187 ["hello"] = "world",
188 ["one"] = "zone" 188 ["one"] = "zone"
189} 189}
190local f = "one", { 190local f1, f2, f3 = "one", {
191 ["two"] = three 191 ["two"] = three
192}, "four" 192}, "four"
193f = { 193f1, f2 = {
194 ["two"] = three 194 ["two"] = three
195}, "four" 195}, "four"
196f = { 196f1 = {
197 "one", 197 "one",
198 ["two"] = three, 198 ["two"] = three,
199 "four" 199 "four"
200} 200}
201local j = "one", { 201local j1, j2, j3, j4 = "one", {
202 ["two"] = three, 202 ["two"] = three,
203 ["four"] = five 203 ["four"] = five
204}, 6, 7 204}, 6, 7