diff options
Diffstat (limited to 'tests/irayo_closure.lua')
-rw-r--r-- | tests/irayo_closure.lua | 4 |
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 |
6 | that uses closures in it as a global variable into a new lane. This | 6 | that uses closures in it as a global variable into a new lane. This |
7 | causes a segmentation fault and it appears to be related to the | 7 | causes a segmentation fault and it appears to be related to the |
8 | luaG_inter_move function near line 835-836 or so in lanes.c, but I | 8 | luaW_inter_move function near line 835-836 or so in lanes.c, but I |
9 | haven't investigated further. | 9 | haven't investigated further. |
10 | e.g. { globals = { data = 1, func = function() useclosurehere() end } }" | 10 | e.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" |
34 | end | 34 | end |
35 | 35 | ||
36 | local lane= lanes.gen( "", { globals = { data=1, func=useclosurehere } }, testrun )() | 36 | local lane= lanes.gen( "", { name = 'auto', globals = { data=1, func=useclosurehere } }, testrun )() |
37 | print(lane[1]) | 37 | print(lane[1]) |