aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/try_catch.yue7
-rw-r--r--spec/inputs/upvalue_func.yue2
2 files changed, 9 insertions, 0 deletions
diff --git a/spec/inputs/try_catch.yue b/spec/inputs/try_catch.yue
index 419eef4..4e05bc6 100644
--- a/spec/inputs/try_catch.yue
+++ b/spec/inputs/try_catch.yue
@@ -20,6 +20,8 @@ f = ->
20 20
21 success, result = try func 1, 2, 3 21 success, result = try func 1, 2, 3
22 22
23 tb = {}
24
23 try tb.func 25 try tb.func
24 try tb.func! 26 try tb.func!
25 try tb.func() 27 try tb.func()
@@ -57,4 +59,9 @@ f = ->
57 59
58 try func 1, 2, 3 60 try func 1, 2, 3
59 61
62 do
63 <- x
64 local tb, a, b, c
65 f = -> try tb.f a, b, c
66
60 nil 67 nil
diff --git a/spec/inputs/upvalue_func.yue b/spec/inputs/upvalue_func.yue
index 159be76..d4b3273 100644
--- a/spec/inputs/upvalue_func.yue
+++ b/spec/inputs/upvalue_func.yue
@@ -210,6 +210,8 @@ do
210 buff_strength = (char, item) -> 210 buff_strength = (char, item) ->
211 item.buffer.strength? char.stats.strength?::ref() 211 item.buffer.strength? char.stats.strength?::ref()
212 212
213 local debug_env_before, debug_env_after
214
213 exe_func = (func, env) -> 215 exe_func = (func, env) ->
214 ok, ... = try 216 ok, ... = try
215 debug_env_before(env) 217 debug_env_before(env)