diff options
Diffstat (limited to 'tests/irayo_closure.lua')
-rw-r--r-- | tests/irayo_closure.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/irayo_closure.lua b/tests/irayo_closure.lua index 3a82302..77ddbde 100644 --- a/tests/irayo_closure.lua +++ b/tests/irayo_closure.lua | |||
@@ -10,7 +10,8 @@ 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 | ]] |
12 | 12 | ||
13 | require "lanes" | 13 | local lanes = require "lanes" |
14 | lanes.configure( 1) | ||
14 | 15 | ||
15 | local function testrun() | 16 | local function testrun() |
16 | assert( print ) | 17 | assert( print ) |
@@ -20,7 +21,7 @@ local function testrun() | |||
20 | return true | 21 | return true |
21 | end | 22 | end |
22 | 23 | ||
23 | -- When some function dereferences a global key, the asssociated global in the source state | 24 | -- When some function dereferences a global key, the associated global in the source state |
24 | -- isn't sent over the target lane | 25 | -- isn't sent over the target lane |
25 | -- therefore, the necessary functions must either be pulled as upvalues (hence locals) | 26 | -- 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 | 27 | -- or the globals must exist in the target lanes because the modules have been required there |