{"action":"created","issue":{"url":"https://api.github.com/repos/kevinbeaty/any-promise/issues/1","labels_url":"https://api.github.com/repos/kevinbeaty/any-promise/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kevinbeaty/any-promise/issues/1/comments","events_url":"https://api.github.com/repos/kevinbeaty/any-promise/issues/1/events","html_url":"https://github.com/kevinbeaty/any-promise/issues/1","id":126893764,"number":1,"title":"Use native promise if it exists, first.","user":{"login":"RangerMauve","id":911495,"avatar_url":"https://avatars.githubusercontent.com/u/911495?v=3","gravatar_id":"","url":"https://api.github.com/users/RangerMauve","html_url":"https://github.com/RangerMauve","followers_url":"https://api.github.com/users/RangerMauve/followers","following_url":"https://api.github.com/users/RangerMauve/following{/other_user}","gists_url":"https://api.github.com/users/RangerMauve/gists{/gist_id}","starred_url":"https://api.github.com/users/RangerMauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RangerMauve/subscriptions","organizations_url":"https://api.github.com/users/RangerMauve/orgs","repos_url":"https://api.github.com/users/RangerMauve/repos","events_url":"https://api.github.com/users/RangerMauve/events{/privacy}","received_events_url":"https://api.github.com/users/RangerMauve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-15T15:22:56Z","updated_at":"2016-01-25T15:47:27Z","closed_at":null,"body":"As mentioned [here](https://github.com/normalize/mz/issues/16#issuecomment-171898672), it might make sense to use the native promise implementation first if it exists and only consider user-land implementations if it isn't defined."},"comment":{"url":"https://api.github.com/repos/kevinbeaty/any-promise/issues/comments/174549291","html_url":"https://github.com/kevinbeaty/any-promise/issues/1#issuecomment-174549291","issue_url":"https://api.github.com/repos/kevinbeaty/any-promise/issues/1","id":174549291,"user":{"login":"addaleax","id":899444,"avatar_url":"https://avatars.githubusercontent.com/u/899444?v=3","gravatar_id":"","url":"https://api.github.com/users/addaleax","html_url":"https://github.com/addaleax","followers_url":"https://api.github.com/users/addaleax/followers","following_url":"https://api.github.com/users/addaleax/following{/other_user}","gists_url":"https://api.github.com/users/addaleax/gists{/gist_id}","starred_url":"https://api.github.com/users/addaleax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addaleax/subscriptions","organizations_url":"https://api.github.com/users/addaleax/orgs","repos_url":"https://api.github.com/users/addaleax/repos","events_url":"https://api.github.com/users/addaleax/events{/privacy}","received_events_url":"https://api.github.com/users/addaleax/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T15:47:27Z","updated_at":"2016-01-25T15:47:27Z","body":"One could check the top-level package.json for an explicitly listed promise depedency and/or some explicit `\"any-promise\": \"…\"` entry. Other modules have defined there own extensions to package.json, and I don’t see a real chance of a namespace collision here.\r\n\r\nThe bigger problem with this would be finding the top-level package.json: I guess walking up the directories from `require.main.filename` and inspecting the last found package.json would be more or less reliable, but I’m not sure that there aren’t corner cases in which that wouldn’t work."}}