richardhundt / shine

A Shiny Lua Dialect
Other
231 stars 18 forks source link

Error: [string "async.loop"]:0: attempt to index a number value, introduced by commit 4311c6f #44

Closed shortweekend closed 10 years ago

shortweekend commented 10 years ago

Commit 4311c6f7d9848dcdb9383ac1c3685f6cc05079cb introduced the following error in several async-based samples:

sample$ shine fiber.shn 
A tick  1
B tick  1
Error: [string "async.loop"]:0: attempt to index a number value
stack traceback:
    [string "async.loop"]: in function 'run_init'
    [string "async.loop"]: in function 'run_once'
    [string "async"]: in function 'idle'
    [string "async.fiber"]: in function 'schedule'
    [string "async.fiber"]: in function 'join'
    fiber.shn:19: in main chunk
    [string "shine"]: in main chunk
    [string "shine"]: in main chunk
    [C]: at 0x010b9a0d20

git revert 4311c6f7d9848dcdb9383ac1c3685f6cc05079cb

Gets things back in order.

Thanks

richardhundt commented 10 years ago

On 3/29/14 10:12 AM, shortweekend wrote:

Gets things back in order.

Thanks

Fixed in git head. Thanks!