{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1248","labels_url":"https://api.github.com/repos/babel/babel/issues/1248/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1248/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1248/events","html_url":"https://github.com/babel/babel/issues/1248","id":68094799,"number":1248,"title":"Runtime does not transform Promise static methods","user":{"login":"mpk","id":2478254,"avatar_url":"https://avatars.githubusercontent.com/u/2478254?v=3","gravatar_id":"","url":"https://api.github.com/users/mpk","html_url":"https://github.com/mpk","followers_url":"https://api.github.com/users/mpk/followers","following_url":"https://api.github.com/users/mpk/following{/other_user}","gists_url":"https://api.github.com/users/mpk/gists{/gist_id}","starred_url":"https://api.github.com/users/mpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpk/subscriptions","organizations_url":"https://api.github.com/users/mpk/orgs","repos_url":"https://api.github.com/users/mpk/repos","events_url":"https://api.github.com/users/mpk/events{/privacy}","received_events_url":"https://api.github.com/users/mpk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/babel/babel/labels/high%20priority","name":"high priority","color":"fbca04"},{"url":"https://api.github.com/repos/babel/babel/labels/runtime","name":"runtime","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-13T13:20:27Z","updated_at":"2015-04-13T16:31:08Z","closed_at":"2015-04-13T16:20:41Z","body":"Hi,\r\n\r\nI'm using the runtime option to automatically include Promise polyfill from core-js, but it seems to work for the Promise constructor only. Static methods (such as Promise.all) are left unchanged, which causes an error in browsers without native Promise support.\r\n\r\nFor example,\r\n```javascript\r\nvar A = new Promise();\r\nPromise.all();\r\n```\r\nis transformed to:\r\n```javascript\r\nvar _Promise = require(\"babel-runtime/core-js/promise\")[\"default\"];\r\n\r\nvar A = new _Promise();\r\nPromise.all(); // Error\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/92418626","html_url":"https://github.com/babel/babel/issues/1248#issuecomment-92418626","issue_url":"https://api.github.com/repos/babel/babel/issues/1248","id":92418626,"user":{"login":"zloirock","id":2213682,"avatar_url":"https://avatars.githubusercontent.com/u/2213682?v=3","gravatar_id":"","url":"https://api.github.com/users/zloirock","html_url":"https://github.com/zloirock","followers_url":"https://api.github.com/users/zloirock/followers","following_url":"https://api.github.com/users/zloirock/following{/other_user}","gists_url":"https://api.github.com/users/zloirock/gists{/gist_id}","starred_url":"https://api.github.com/users/zloirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zloirock/subscriptions","organizations_url":"https://api.github.com/users/zloirock/orgs","repos_url":"https://api.github.com/users/zloirock/repos","events_url":"https://api.github.com/users/zloirock/events{/privacy}","received_events_url":"https://api.github.com/users/zloirock/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:31:08Z","updated_at":"2015-04-13T16:31:08Z","body":"@sebmck also `Reflect` and `Number.EPSILON` (in uppercase)."}}