diff options
author | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
commit | 60a979e224f26117f5be82bfca757a2483cef0fd (patch) | |
tree | 7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/export_default.lua | |
parent | a19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff) | |
download | yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2 yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip |
fix test.
Diffstat (limited to 'spec/outputs/export_default.lua')
-rw-r--r-- | spec/outputs/export_default.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/outputs/export_default.lua b/spec/outputs/export_default.lua new file mode 100644 index 0000000..a9c787f --- /dev/null +++ b/spec/outputs/export_default.lua | |||
@@ -0,0 +1,19 @@ | |||
1 | local _module_0 = nil | ||
2 | print("OK") | ||
3 | _module_0 = function() | ||
4 | print("hello") | ||
5 | return 123 | ||
6 | end | ||
7 | if not isOff then | ||
8 | f(123, "abc", function(x, fy) | ||
9 | print(x) | ||
10 | return fy(function(y, res) | ||
11 | if res then | ||
12 | return abc + y | ||
13 | else | ||
14 | return abc | ||
15 | end | ||
16 | end) | ||
17 | end) | ||
18 | end | ||
19 | return _module_0 | ||