{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1498","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1498/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1498/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1498/events","html_url":"https://github.com/lodash/lodash/issues/1498","id":108959211,"number":1498,"title":"Different versions of V8 give different string tags for generator functions: _.isFunction","user":{"login":"Xotic750","id":216041,"avatar_url":"https://avatars.githubusercontent.com/u/216041?v=3","gravatar_id":"","url":"https://api.github.com/users/Xotic750","html_url":"https://github.com/Xotic750","followers_url":"https://api.github.com/users/Xotic750/followers","following_url":"https://api.github.com/users/Xotic750/following{/other_user}","gists_url":"https://api.github.com/users/Xotic750/gists{/gist_id}","starred_url":"https://api.github.com/users/Xotic750/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xotic750/subscriptions","organizations_url":"https://api.github.com/users/Xotic750/orgs","repos_url":"https://api.github.com/users/Xotic750/repos","events_url":"https://api.github.com/users/Xotic750/events{/privacy}","received_events_url":"https://api.github.com/users/Xotic750/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T21:01:56Z","updated_at":"2015-09-29T21:06:26Z","closed_at":null,"body":" I am getting different results for generator function using `_.isFunction` with different versions of V8.\r\n\r\nFor example\r\n```\r\nfunction* test() {\r\n  yield* [1, 2, 3];\r\n}\r\n\r\nconsole.log(_.isFunction(test));\r\n```\r\nOn v4.5.103.33 I get a result of `false`, but on v4.5.103.34 I get a result of `true`.\r\n\r\nIf I `typeof test` on both versions they return `function`, but with `Object.prototype.toString.call(test)` I get `[object GeneratorFunction]` and `[object Function]` respectively. In your source code I see you use `toString` to avoid issues with `typeof` on older browsers, but this now causes problems on newer browsers. I don't know what to suggest, haven't thought about it much yet, but I thougt you should be aware of the issue."},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/144191585","html_url":"https://github.com/lodash/lodash/issues/1498#issuecomment-144191585","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1498","id":144191585,"user":{"login":"jdalton","id":4303,"avatar_url":"https://avatars.githubusercontent.com/u/4303?v=3","gravatar_id":"","url":"https://api.github.com/users/jdalton","html_url":"https://github.com/jdalton","followers_url":"https://api.github.com/users/jdalton/followers","following_url":"https://api.github.com/users/jdalton/following{/other_user}","gists_url":"https://api.github.com/users/jdalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalton/subscriptions","organizations_url":"https://api.github.com/users/jdalton/orgs","repos_url":"https://api.github.com/users/jdalton/repos","events_url":"https://api.github.com/users/jdalton/events{/privacy}","received_events_url":"https://api.github.com/users/jdalton/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T21:06:26Z","updated_at":"2015-09-29T21:06:26Z","body":"Oh bummer and that's by [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-generatorfunction.prototype-@@tostringtag) too."}}