{"action":"opened","issue":{"url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/172","labels_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/172/comments","events_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/172/events","html_url":"https://github.com/SpookyJS/SpookyJS/issues/172","id":106909904,"number":172,"title":"Could not work with node.js v4.0.0","user":{"login":"neil-zeng","id":3146391,"avatar_url":"https://avatars.githubusercontent.com/u/3146391?v=3","gravatar_id":"","url":"https://api.github.com/users/neil-zeng","html_url":"https://github.com/neil-zeng","followers_url":"https://api.github.com/users/neil-zeng/followers","following_url":"https://api.github.com/users/neil-zeng/following{/other_user}","gists_url":"https://api.github.com/users/neil-zeng/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-zeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-zeng/subscriptions","organizations_url":"https://api.github.com/users/neil-zeng/orgs","repos_url":"https://api.github.com/users/neil-zeng/repos","events_url":"https://api.github.com/users/neil-zeng/events{/privacy}","received_events_url":"https://api.github.com/users/neil-zeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T04:17:25Z","updated_at":"2015-09-17T04:17:25Z","closed_at":null,"body":"I think it caused by \r\n```\r\nvar parsed = fn.toString().match(/function\\s+(\\w+)?\\((.*)\\)/);\r\n```\r\nin\r\n```\r\nspooky/node_modules/tiny-jsonrpc/lib/tiny-jsonrpc/server.js\r\n```\r\n\"version\": \"0.2.1\"\r\n#### Before v4.0.0\r\n```\r\n> var fn = function () {console.log(\"hello\")}.bind(this)\r\nundefined\r\n> fn.toString()\r\n'function () { [native code] }'\r\n```\r\n#### v4.0.0\r\n```\r\n> var fn = function () {console.log(\"hello\")}.bind(this)\r\nundefined\r\n> fn.toString()\r\n'function bound () { [native code] }'\r\n```"}}