{"action":"opened","number":2849,"pull_request":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2849","id":53187919,"html_url":"https://github.com/idris-lang/Idris-dev/pull/2849","diff_url":"https://github.com/idris-lang/Idris-dev/pull/2849.diff","patch_url":"https://github.com/idris-lang/Idris-dev/pull/2849.patch","issue_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2849","number":2849,"state":"open","locked":false,"title":"Bug fix for infinite loop while executing a callback in the Javascript runtime","user":{"login":"aaronc","id":48918,"avatar_url":"https://avatars.githubusercontent.com/u/48918?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronc","html_url":"https://github.com/aaronc","followers_url":"https://api.github.com/users/aaronc/followers","following_url":"https://api.github.com/users/aaronc/following{/other_user}","gists_url":"https://api.github.com/users/aaronc/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronc/subscriptions","organizations_url":"https://api.github.com/users/aaronc/orgs","repos_url":"https://api.github.com/users/aaronc/repos","events_url":"https://api.github.com/users/aaronc/events{/privacy}","received_events_url":"https://api.github.com/users/aaronc/received_events","type":"User","site_admin":false},"body":"The `NULL` `BC` operation, which is supposed to clear a register (according to the docs) was translated as `delete` in the Javascript backend. This worked fine for clearing registers from the stack, but did not work well while trying to clear `i$RT`. This cause an infinite loop in `i$ffiWrap` which was checking the return value should have been cleared but continued to hold its old value (essentially ignoring the delete operation). Callbacks work fine now in my tests.","created_at":"2015-12-09T22:29:26Z","updated_at":"2015-12-09T22:29:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2849/commits","review_comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2849/comments","review_comment_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2849/comments","statuses_url":"https://api.github.com/repos/idris-lang/Idris-dev/statuses/3bbaf1e5e35a09b73f8623aaa13c25aa8bc74d3a","head":{"label":"aaronc:master","ref":"master","sha":"3bbaf1e5e35a09b73f8623aaa13c25aa8bc74d3a","user":{"login":"aaronc","id":48918,"avatar_url":"https://avatars.githubusercontent.com/u/48918?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronc","html_url":"https://github.com/aaronc","followers_url":"https://api.github.com/users/aaronc/followers","following_url":"https://api.github.com/users/aaronc/following{/other_user}","gists_url":"https://api.github.com/users/aaronc/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronc/subscriptions","organizations_url":"https://api.github.com/users/aaronc/orgs","repos_url":"https://api.github.com/users/aaronc/repos","events_url":"https://api.github.com/users/aaronc/events{/privacy}","received_events_url":"https://api.github.com/users/aaronc/received_events","type":"User","site_admin":false},"repo":{"id":42895718,"name":"Idris-dev","full_name":"aaronc/Idris-dev","owner":{"login":"aaronc","id":48918,"avatar_url":"https://avatars.githubusercontent.com/u/48918?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronc","html_url":"https://github.com/aaronc","followers_url":"https://api.github.com/users/aaronc/followers","following_url":"https://api.github.com/users/aaronc/following{/other_user}","gists_url":"https://api.github.com/users/aaronc/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronc/subscriptions","organizations_url":"https://api.github.com/users/aaronc/orgs","repos_url":"https://api.github.com/users/aaronc/repos","events_url":"https://api.github.com/users/aaronc/events{/privacy}","received_events_url":"https://api.github.com/users/aaronc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaronc/Idris-dev","description":"A Dependently Typed Functional Programming Language","fork":true,"url":"https://api.github.com/repos/aaronc/Idris-dev","forks_url":"https://api.github.com/repos/aaronc/Idris-dev/forks","keys_url":"https://api.github.com/repos/aaronc/Idris-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaronc/Idris-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaronc/Idris-dev/teams","hooks_url":"https://api.github.com/repos/aaronc/Idris-dev/hooks","issue_events_url":"https://api.github.com/repos/aaronc/Idris-dev/issues/events{/number}","events_url":"https://api.github.com/repos/aaronc/Idris-dev/events","assignees_url":"https://api.github.com/repos/aaronc/Idris-dev/assignees{/user}","branches_url":"https://api.github.com/repos/aaronc/Idris-dev/branches{/branch}","tags_url":"https://api.github.com/repos/aaronc/Idris-dev/tags","blobs_url":"https://api.github.com/repos/aaronc/Idris-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaronc/Idris-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaronc/Idris-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaronc/Idris-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaronc/Idris-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/aaronc/Idris-dev/languages","stargazers_url":"https://api.github.com/repos/aaronc/Idris-dev/stargazers","contributors_url":"https://api.github.com/repos/aaronc/Idris-dev/contributors","subscribers_url":"https://api.github.com/repos/aaronc/Idris-dev/subscribers","subscription_url":"https://api.github.com/repos/aaronc/Idris-dev/subscription","commits_url":"https://api.github.com/repos/aaronc/Idris-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaronc/Idris-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaronc/Idris-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaronc/Idris-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaronc/Idris-dev/contents/{+path}","compare_url":"https://api.github.com/repos/aaronc/Idris-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaronc/Idris-dev/merges","archive_url":"https://api.github.com/repos/aaronc/Idris-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaronc/Idris-dev/downloads","issues_url":"https://api.github.com/repos/aaronc/Idris-dev/issues{/number}","pulls_url":"https://api.github.com/repos/aaronc/Idris-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/aaronc/Idris-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/aaronc/Idris-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaronc/Idris-dev/labels{/name}","releases_url":"https://api.github.com/repos/aaronc/Idris-dev/releases{/id}","created_at":"2015-09-21T21:53:41Z","updated_at":"2015-09-21T21:53:43Z","pushed_at":"2015-12-09T22:20:44Z","git_url":"git://github.com/aaronc/Idris-dev.git","ssh_url":"git@github.com:aaronc/Idris-dev.git","clone_url":"https://github.com/aaronc/Idris-dev.git","svn_url":"https://github.com/aaronc/Idris-dev","homepage":"http://idris-lang.org","size":28450,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"idris-lang:master","ref":"master","sha":"10a22eb5f02117a38209c73dbd23699b7b3336ef","user":{"login":"idris-lang","id":5552910,"avatar_url":"https://avatars.githubusercontent.com/u/5552910?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-lang","html_url":"https://github.com/idris-lang","followers_url":"https://api.github.com/users/idris-lang/followers","following_url":"https://api.github.com/users/idris-lang/following{/other_user}","gists_url":"https://api.github.com/users/idris-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-lang/subscriptions","organizations_url":"https://api.github.com/users/idris-lang/orgs","repos_url":"https://api.github.com/users/idris-lang/repos","events_url":"https://api.github.com/users/idris-lang/events{/privacy}","received_events_url":"https://api.github.com/users/idris-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":2386778,"name":"Idris-dev","full_name":"idris-lang/Idris-dev","owner":{"login":"idris-lang","id":5552910,"avatar_url":"https://avatars.githubusercontent.com/u/5552910?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-lang","html_url":"https://github.com/idris-lang","followers_url":"https://api.github.com/users/idris-lang/followers","following_url":"https://api.github.com/users/idris-lang/following{/other_user}","gists_url":"https://api.github.com/users/idris-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-lang/subscriptions","organizations_url":"https://api.github.com/users/idris-lang/orgs","repos_url":"https://api.github.com/users/idris-lang/repos","events_url":"https://api.github.com/users/idris-lang/events{/privacy}","received_events_url":"https://api.github.com/users/idris-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idris-lang/Idris-dev","description":"A Dependently Typed Functional Programming Language","fork":false,"url":"https://api.github.com/repos/idris-lang/Idris-dev","forks_url":"https://api.github.com/repos/idris-lang/Idris-dev/forks","keys_url":"https://api.github.com/repos/idris-lang/Idris-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idris-lang/Idris-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idris-lang/Idris-dev/teams","hooks_url":"https://api.github.com/repos/idris-lang/Idris-dev/hooks","issue_events_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/events{/number}","events_url":"https://api.github.com/repos/idris-lang/Idris-dev/events","assignees_url":"https://api.github.com/repos/idris-lang/Idris-dev/assignees{/user}","branches_url":"https://api.github.com/repos/idris-lang/Idris-dev/branches{/branch}","tags_url":"https://api.github.com/repos/idris-lang/Idris-dev/tags","blobs_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idris-lang/Idris-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/idris-lang/Idris-dev/languages","stargazers_url":"https://api.github.com/repos/idris-lang/Idris-dev/stargazers","contributors_url":"https://api.github.com/repos/idris-lang/Idris-dev/contributors","subscribers_url":"https://api.github.com/repos/idris-lang/Idris-dev/subscribers","subscription_url":"https://api.github.com/repos/idris-lang/Idris-dev/subscription","commits_url":"https://api.github.com/repos/idris-lang/Idris-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/idris-lang/Idris-dev/contents/{+path}","compare_url":"https://api.github.com/repos/idris-lang/Idris-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idris-lang/Idris-dev/merges","archive_url":"https://api.github.com/repos/idris-lang/Idris-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idris-lang/Idris-dev/downloads","issues_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues{/number}","pulls_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/idris-lang/Idris-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/idris-lang/Idris-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idris-lang/Idris-dev/labels{/name}","releases_url":"https://api.github.com/repos/idris-lang/Idris-dev/releases{/id}","created_at":"2011-09-14T16:55:49Z","updated_at":"2015-12-08T21:33:25Z","pushed_at":"2015-12-08T11:17:59Z","git_url":"git://github.com/idris-lang/Idris-dev.git","ssh_url":"git@github.com:idris-lang/Idris-dev.git","clone_url":"https://github.com/idris-lang/Idris-dev.git","svn_url":"https://github.com/idris-lang/Idris-dev","homepage":"http://idris-lang.org","size":29757,"stargazers_count":968,"watchers_count":968,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":291,"mirror_url":null,"open_issues_count":453,"forks":291,"open_issues":453,"watchers":968,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2849"},"html":{"href":"https://github.com/idris-lang/Idris-dev/pull/2849"},"issue":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2849"},"comments":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2849/comments"},"review_comments":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2849/comments"},"review_comment":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2849/commits"},"statuses":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/statuses/3bbaf1e5e35a09b73f8623aaa13c25aa8bc74d3a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":2}}