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

about lua coroutine #31

Open
cnlibla opened this issue May 27, 2015 · 1 comment
Open

about lua coroutine #31

cnlibla opened this issue May 27, 2015 · 1 comment

Comments

@cnlibla
Copy link

cnlibla commented May 27, 2015

A error sample:
c = coroutine.create(function() print(1) coroutine.yield() print(2) end)
coroutine.resume(c)
coroutine.resume(c)

paulcuth pushed a commit that referenced this issue Dec 23, 2015
@xooxdoo
Copy link

xooxdoo commented Oct 17, 2016

Tried:

c = coroutine.create(function() print(1) coroutine.yield() print(2) end)
coroutine.resume(c)
coroutine.resume(c)
print("hola");

got

Error in host call: vm is undefined
    shine.Coroutine._remove@http://moonshinejs.org/js/moonshine/moonshine.js:1637:2
    call_internal@http://moonshinejs.org/js/moonshine/moonshine.js:2890:15
    shine.Closure.prototype._executeInstruction@http://moonshinejs.org/js/moonshine/moonshine.js:1246:9
    run/<@http://moonshinejs.org/editor/editor.js:262:5
    success@http://moonshinejs.org/editor/editor.js:313:5
    anonymous/xhr.onload@http://moonshinejs.org/editor/editor.js line 304 > Function:33:19

    @/app/lua/40933-1476726075985.lua [(compiled code):3]

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

2 participants