aboutsummaryrefslogtreecommitdiff
path: root/tests/irayo_closure.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/irayo_closure.lua')
-rw-r--r--tests/irayo_closure.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/irayo_closure.lua b/tests/irayo_closure.lua
index 45189ec..40c586d 100644
--- a/tests/irayo_closure.lua
+++ b/tests/irayo_closure.lua
@@ -5,7 +5,7 @@
5"Another issue I've noticed is trying to pass a table with a function 5"Another issue I've noticed is trying to pass a table with a function
6that uses closures in it as a global variable into a new lane. This 6that uses closures in it as a global variable into a new lane. This
7causes a segmentation fault and it appears to be related to the 7causes a segmentation fault and it appears to be related to the
8luaG_inter_move function near line 835-836 or so in lanes.c, but I 8luaW_inter_move function near line 835-836 or so in lanes.c, but I
9haven't investigated further. 9haven't investigated further.
10e.g. { globals = { data = 1, func = function() useclosurehere() end } }" 10e.g. { globals = { data = 1, func = function() useclosurehere() end } }"
11]] 11]]
@@ -33,5 +33,5 @@ local function useclosurehere()
33 print "using the closure" 33 print "using the closure"
34end 34end
35 35
36local lane= lanes.gen( "", { globals = { data=1, func=useclosurehere } }, testrun )() 36local lane= lanes.gen( "", { name = 'auto', globals = { data=1, func=useclosurehere } }, testrun )()
37print(lane[1]) 37print(lane[1])