{"action":"closed","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3432","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3432/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3432/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3432/events","html_url":"https://github.com/kripken/emscripten/issues/3432","id":72591090,"number":3432,"title":"Function pointers to js functions","user":{"login":"coolwanglu","id":734614,"avatar_url":"https://avatars.githubusercontent.com/u/734614?v=3","gravatar_id":"","url":"https://api.github.com/users/coolwanglu","html_url":"https://github.com/coolwanglu","followers_url":"https://api.github.com/users/coolwanglu/followers","following_url":"https://api.github.com/users/coolwanglu/following{/other_user}","gists_url":"https://api.github.com/users/coolwanglu/gists{/gist_id}","starred_url":"https://api.github.com/users/coolwanglu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolwanglu/subscriptions","organizations_url":"https://api.github.com/users/coolwanglu/orgs","repos_url":"https://api.github.com/users/coolwanglu/repos","events_url":"https://api.github.com/users/coolwanglu/events{/privacy}","received_events_url":"https://api.github.com/users/coolwanglu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-02T05:41:54Z","updated_at":"2015-05-02T18:51:33Z","closed_at":"2015-05-02T18:51:33Z","body":"Sample code:\r\n```\r\n// tmp.c\r\nvoid f();\r\nint main() {\r\n  void (*g)() = &f;\r\n  (*g)(); \r\n  return 0;\r\n}\r\n\r\n// tmp_lib.js\r\n// mergeInto...\r\nhello: function() {}\r\n```\r\n\r\nThe output would fail at `(*g)()`, and it turns out that `_f` is not stored in`FUNCTION_TABLE_v`. Instead, there's a `_f__wrapper` in `FUNCTION_TABLE_vi`.\r\n\r\nI couldn't find relevant info in the docs, is it a bug?\r\n"}}