{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/366","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/366/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/366/events","html_url":"https://github.com/sindresorhus/ava/pull/366","id":123897953,"number":366,"title":"Babel feature detection","user":{"login":"ariporad","id":1817508,"avatar_url":"https://avatars.githubusercontent.com/u/1817508?v=3","gravatar_id":"","url":"https://api.github.com/users/ariporad","html_url":"https://github.com/ariporad","followers_url":"https://api.github.com/users/ariporad/followers","following_url":"https://api.github.com/users/ariporad/following{/other_user}","gists_url":"https://api.github.com/users/ariporad/gists{/gist_id}","starred_url":"https://api.github.com/users/ariporad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariporad/subscriptions","organizations_url":"https://api.github.com/users/ariporad/orgs","repos_url":"https://api.github.com/users/ariporad/repos","events_url":"https://api.github.com/users/ariporad/events{/privacy}","received_events_url":"https://api.github.com/users/ariporad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-25T21:21:11Z","updated_at":"2015-12-28T13:36:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/366","html_url":"https://github.com/sindresorhus/ava/pull/366","diff_url":"https://github.com/sindresorhus/ava/pull/366.diff","patch_url":"https://github.com/sindresorhus/ava/pull/366.patch"},"body":"This fixes #348. It uses [`babel-preset-features`](npm.im/babel-preset-features) to auto-detect ES6 features. Also includes tests.\r\n\r\nEnjoy!"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/167571114","html_url":"https://github.com/sindresorhus/ava/pull/366#issuecomment-167571114","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/366","id":167571114,"user":{"login":"hax","id":159840,"avatar_url":"https://avatars.githubusercontent.com/u/159840?v=3","gravatar_id":"","url":"https://api.github.com/users/hax","html_url":"https://github.com/hax","followers_url":"https://api.github.com/users/hax/followers","following_url":"https://api.github.com/users/hax/following{/other_user}","gists_url":"https://api.github.com/users/hax/gists{/gist_id}","starred_url":"https://api.github.com/users/hax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hax/subscriptions","organizations_url":"https://api.github.com/users/hax/orgs","repos_url":"https://api.github.com/users/hax/repos","events_url":"https://api.github.com/users/hax/events{/privacy}","received_events_url":"https://api.github.com/users/hax/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T13:36:52Z","updated_at":"2015-12-28T13:36:52Z","body":"Sorry I have cold last week and not check the github notifications.\r\n\r\n> What is the runtime overhead of doing a bunch of feature detections?\r\n\r\nThe runtime overhead of feature detection < 10ms, so I think it's ok for most applications.\r\n\r\n>  What if the native implementation has bugs and we want to use Babel for that?\r\n\r\nYes they have. But Babel also have :grinning: . So we need to check it case by case. For example, whether to use `regenerator`. (node 0.12+ have generators, but missing some minor features such as `Generator.prototype.return`. `babel-preset-es2015-node-5` decide to not use `regenerator`. If there is any other case like that please let me know.)\r\n"}}