Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coroutine.wrap fails on resume #8

Open
daurnimator opened this issue Jan 15, 2014 · 0 comments
Open

coroutine.wrap fails on resume #8

daurnimator opened this issue Jan 15, 2014 · 0 comments

Comments

@daurnimator
Copy link

Uncaught TypeError: Cannot read property '_coroutineStack' of undefined moonshine.js:2428
shine.Coroutine._remove moonshine.js:2428
shine.Coroutine.resume moonshine.js:2508
shine.lib.coroutine.shine.Table.resume moonshine.js:3621
result

Minimal example:

local f = coroutine.wrap ( function(resume)
    window:setTimeout(resume,0)
    coroutine.yield()
    print("HERE")
end )
f ( f )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant