-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib.es6.d.ts declares console.debug() #11751
Comments
|
Its not part of the ECMA standard, as would be implied by its inclusion in this particular definition file, it is just par of the "living" whatwg document. |
Sure, maybe it should be in a different file, but it's part of the Console Standard, which is the only normative definition of |
The |
Thanks @mhegazy. Adding I would have thought that specifying |
We have an issue to support |
I want to use console function definitions with |
node supports console.debug now |
I'm not sure why lib.es6.d.ts defines method
debug
oninterface Console
. I don't find evidence that it's specified by the ECMA standard, or commonly implemented. It looks likeconsole.debug
may be a Microsoft (and Chrome)-specific extension, that functions the same asconsole.log
per both MSDN and Chrome docs.. Compare this with Node console documentation.TypeScript Version: 2.0.3
Code
Expected behavior:
Shouldn't this generate a TypeScript compiler error?
Actual behavior:
When building for ES6 target, seems to be accepted, but will generate a runtime error on Node.js.
Note
console.debug()
is defined in the current WHATWG console document, but the definition there clearly indicates it is duplicative ofconsole.log()
,The text was updated successfully, but these errors were encountered: