{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/898","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/898/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/898/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/898/events","html_url":"https://github.com/petkaantonov/bluebird/pull/898","id":119719976,"number":898,"title":"Disable `__DEBUG__` for browser build","user":{"login":"suprememoocow","id":594566,"avatar_url":"https://avatars.githubusercontent.com/u/594566?v=3","gravatar_id":"","url":"https://api.github.com/users/suprememoocow","html_url":"https://github.com/suprememoocow","followers_url":"https://api.github.com/users/suprememoocow/followers","following_url":"https://api.github.com/users/suprememoocow/following{/other_user}","gists_url":"https://api.github.com/users/suprememoocow/gists{/gist_id}","starred_url":"https://api.github.com/users/suprememoocow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suprememoocow/subscriptions","organizations_url":"https://api.github.com/users/suprememoocow/orgs","repos_url":"https://api.github.com/users/suprememoocow/repos","events_url":"https://api.github.com/users/suprememoocow/events{/privacy}","received_events_url":"https://api.github.com/users/suprememoocow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-01T13:43:47Z","updated_at":"2015-12-01T15:16:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/petkaantonov/bluebird/pulls/898","html_url":"https://github.com/petkaantonov/bluebird/pull/898","diff_url":"https://github.com/petkaantonov/bluebird/pull/898.diff","patch_url":"https://github.com/petkaantonov/bluebird/pull/898.patch"},"body":"This PR fixes the issue described in https://github.com/petkaantonov/bluebird/issues/897\r\n\r\nWhen using Bluebird with webpack or browserify, the `./js/browser/bluebird.js` file is used, which is currently build with `__DEBUG__` set to `true`.\r\n\r\nThis has a major performance impact on Bluebird in a production environment.\r\n\r\nThis PR sets `__DEBUG__` to false by default, except if `build.js` is invoked with `--debug`.\r\n\r\nPlease let me know if there are any changes you would like me to make."},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/160998175","html_url":"https://github.com/petkaantonov/bluebird/pull/898#issuecomment-160998175","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/898","id":160998175,"user":{"login":"spion","id":502412,"avatar_url":"https://avatars.githubusercontent.com/u/502412?v=3","gravatar_id":"","url":"https://api.github.com/users/spion","html_url":"https://github.com/spion","followers_url":"https://api.github.com/users/spion/followers","following_url":"https://api.github.com/users/spion/following{/other_user}","gists_url":"https://api.github.com/users/spion/gists{/gist_id}","starred_url":"https://api.github.com/users/spion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spion/subscriptions","organizations_url":"https://api.github.com/users/spion/orgs","repos_url":"https://api.github.com/users/spion/repos","events_url":"https://api.github.com/users/spion/events{/privacy}","received_events_url":"https://api.github.com/users/spion/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T15:16:42Z","updated_at":"2015-12-01T15:16:42Z","body":"Is there any way to enable `__DEBUG__` when e.g. `browserify` is invoked with `--debug` ? "}}