{"action":"created","issue":{"url":"https://api.github.com/repos/gamesys/moonshine/issues/31","repository_url":"https://api.github.com/repos/gamesys/moonshine","labels_url":"https://api.github.com/repos/gamesys/moonshine/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/gamesys/moonshine/issues/31/comments","events_url":"https://api.github.com/repos/gamesys/moonshine/issues/31/events","html_url":"https://github.com/gamesys/moonshine/issues/31","id":81260044,"number":31,"title":"about lua coroutine","user":{"login":"cnlibla","id":8596212,"avatar_url":"https://avatars.githubusercontent.com/u/8596212?v=3","gravatar_id":"","url":"https://api.github.com/users/cnlibla","html_url":"https://github.com/cnlibla","followers_url":"https://api.github.com/users/cnlibla/followers","following_url":"https://api.github.com/users/cnlibla/following{/other_user}","gists_url":"https://api.github.com/users/cnlibla/gists{/gist_id}","starred_url":"https://api.github.com/users/cnlibla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnlibla/subscriptions","organizations_url":"https://api.github.com/users/cnlibla/orgs","repos_url":"https://api.github.com/users/cnlibla/repos","events_url":"https://api.github.com/users/cnlibla/events{/privacy}","received_events_url":"https://api.github.com/users/cnlibla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-05-27T03:58:44Z","updated_at":"2016-10-17T17:44:20Z","closed_at":null,"body":"A error sample:\r\nc = coroutine.create(function() print(1) coroutine.yield() print(2) end)\r\ncoroutine.resume(c)\r\ncoroutine.resume(c)"},"comment":{"url":"https://api.github.com/repos/gamesys/moonshine/issues/comments/254279724","html_url":"https://github.com/gamesys/moonshine/issues/31#issuecomment-254279724","issue_url":"https://api.github.com/repos/gamesys/moonshine/issues/31","id":254279724,"user":{"login":"xooxdoo","id":15142474,"avatar_url":"https://avatars.githubusercontent.com/u/15142474?v=3","gravatar_id":"","url":"https://api.github.com/users/xooxdoo","html_url":"https://github.com/xooxdoo","followers_url":"https://api.github.com/users/xooxdoo/followers","following_url":"https://api.github.com/users/xooxdoo/following{/other_user}","gists_url":"https://api.github.com/users/xooxdoo/gists{/gist_id}","starred_url":"https://api.github.com/users/xooxdoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xooxdoo/subscriptions","organizations_url":"https://api.github.com/users/xooxdoo/orgs","repos_url":"https://api.github.com/users/xooxdoo/repos","events_url":"https://api.github.com/users/xooxdoo/events{/privacy}","received_events_url":"https://api.github.com/users/xooxdoo/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T17:44:20Z","updated_at":"2016-10-17T17:44:20Z","body":"Tried:\r\n```\r\nc = coroutine.create(function() print(1) coroutine.yield() print(2) end)\r\ncoroutine.resume(c)\r\ncoroutine.resume(c)\r\nprint(\"hola\");\r\n```\r\n\r\ngot\r\n```\r\nError in host call: vm is undefined\r\n    shine.Coroutine._remove@http://moonshinejs.org/js/moonshine/moonshine.js:1637:2\r\n    call_internal@http://moonshinejs.org/js/moonshine/moonshine.js:2890:15\r\n    shine.Closure.prototype._executeInstruction@http://moonshinejs.org/js/moonshine/moonshine.js:1246:9\r\n    run/<@http://moonshinejs.org/editor/editor.js:262:5\r\n    success@http://moonshinejs.org/editor/editor.js:313:5\r\n    anonymous/xhr.onload@http://moonshinejs.org/editor/editor.js line 304 > Function:33:19\r\n    \r\n    @/app/lua/40933-1476726075985.lua [(compiled code):3]\r\n```"}}
{"actor":{"display_login":"xooxdoo"}}