diff options
Diffstat (limited to 'tests/irayo_closure.lua')
-rw-r--r-- | tests/irayo_closure.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/irayo_closure.lua b/tests/irayo_closure.lua index faf08fd..3a82302 100644 --- a/tests/irayo_closure.lua +++ b/tests/irayo_closure.lua | |||
@@ -20,11 +20,13 @@ local function testrun() | |||
20 | return true | 20 | return true |
21 | end | 21 | end |
22 | 22 | ||
23 | -- Should also work without these lines, but currently doesn't (bug in Lanes, | 23 | -- When some function dereferences a global key, the asssociated global in the source state |
24 | -- a function thrown over isn't connected to receiving lane's globals) | 24 | -- isn't sent over the target lane |
25 | -- therefore, the necessary functions must either be pulled as upvalues (hence locals) | ||
26 | -- or the globals must exist in the target lanes because the modules have been required there | ||
25 | -- | 27 | -- |
26 | --local print=print | 28 | local print=print |
27 | --local assert=assert | 29 | local assert=assert |
28 | 30 | ||
29 | local function useclosurehere() | 31 | local function useclosurehere() |
30 | assert( print ) | 32 | assert( print ) |