{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11751","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11751/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11751/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11751/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11751","id":184266247,"number":11751,"title":"lib.es6.d.ts declares console.debug() ","user":{"login":"BurtHarris","id":2715647,"avatar_url":"https://avatars.githubusercontent.com/u/2715647?v=3","gravatar_id":"","url":"https://api.github.com/users/BurtHarris","html_url":"https://github.com/BurtHarris","followers_url":"https://api.github.com/users/BurtHarris/followers","following_url":"https://api.github.com/users/BurtHarris/following{/other_user}","gists_url":"https://api.github.com/users/BurtHarris/gists{/gist_id}","starred_url":"https://api.github.com/users/BurtHarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurtHarris/subscriptions","organizations_url":"https://api.github.com/users/BurtHarris/orgs","repos_url":"https://api.github.com/users/BurtHarris/repos","events_url":"https://api.github.com/users/BurtHarris/events{/privacy}","received_events_url":"https://api.github.com/users/BurtHarris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-20T15:43:22Z","updated_at":"2016-10-20T17:41:46Z","closed_at":null,"body":"I'm not sure why **lib.es6.d.ts** defines method `debug` on `interface Console`.    I don't find evidence that it's specified by the ECMA standard, or commonly implemented.   It looks like `console.debug` may be a Microsoft (and Chrome)-specific extension, that functions the same as `console.log` per both [MSDN](https://msdn.microsoft.com/en-us/library/hh696634.aspx) and [Chrome](https://developers.google.com/web/tools/chrome-devtools/console/console-reference#debug) docs..  Compare this with [Node console](https://nodejs.org/dist/latest-v6.x/docs/api/console.html) documentation.\r\n\r\n**TypeScript Version:**  2.0.3 \r\n\r\n**Code**\r\n\r\n```ts\r\nconsole.debug(\"asdf\");\r\n```\r\n\r\n**Expected behavior:**\r\nShouldn't this generate a TypeScript compiler error?\r\n\r\n**Actual behavior:** \r\nWhen building for ES6 target, seems to be accepted, but will generate a runtime error on Node.js.\r\n\r\n**Note**\r\n`console.debug()` is defined in the current [WHATWG console document](https://console.spec.whatwg.org/#debug), but the definition there clearly indicates it is duplicative of `console.log()`,"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/255176014","html_url":"https://github.com/Microsoft/TypeScript/issues/11751#issuecomment-255176014","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11751","id":255176014,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T17:41:46Z","updated_at":"2016-10-20T17:41:46Z","body":"We have an issue to support `--lib node`, which basically takes care of this issue as well as needing to specify `\"types\": [ \"node\" ]` and installing `@types\\node` in the first place. See https://github.com/Microsoft/TypeScript/issues/9466. The main issue is versions, and introducing yet another way to get to node definitions. "}}
{"actor":{"display_login":"mhegazy"}}