FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert "console: rename argument of time and timeEnd" by silverwind · Pull Request #3590 · nodejs/node · GitHub

/ node Public

Revert "console: rename argument of time and timeEnd" - #3590

Closed
silverwind wants to merge 1 commit into
nodejs:masterfrom
silverwind:revert-console-time-argument-rename
Closed

Revert "console: rename argument of time and timeEnd"#3590
silverwind wants to merge 1 commit into
nodejs:masterfrom
silverwind:revert-console-time-argument-rename

Conversation

Copy link
Copy Markdown
Contributor

The argument name in the documentation was changed to match MDN in 8c043c1, but as it turns out the argument is actually called label in the console spec. I'll fix this on MDN soon after this commit lands.

cc: @targos @aks-

Turns out the argument is actually called label in the console spec,
while being wrongly named on MDN. A correction to MDN will follow.

This reverts commit 8c043c1.
silverwind added doc Issues and PRs related to the documentations. console Issues and PRs related to the console subsystem. labels Oct 29, 2015

targos commented Oct 29, 2015

Copy link
Copy Markdown
Member

LGTM

domenic commented Oct 30, 2015

Copy link
Copy Markdown
Contributor

There is no real console spec (that repo is not what is implemented in browsers), so I'm not sure this buys you anything. If you are really interested you could try doing console.time.toString() in a variety of browsers and seeing what they say...

targos commented Oct 30, 2015

Copy link
Copy Markdown
Member

@domenic do you have a trick to see the actual code instead of function time() { [native code] } ?

domenic commented Oct 30, 2015

Copy link
Copy Markdown
Contributor

Well you can look at the source, for the open source browsers (i.e. not Edge). But parameters will be shown anyway, so your result indicates that that browser doesn't give the parameters any names at all.

jasnell commented Nov 3, 2015

Copy link
Copy Markdown
Member

LGTM but don't see it as a priority

silverwind added a commit that referenced this pull request Nov 10, 2015
Turns out the argument is actually called label in the console spec,
while being wrongly named on MDN. This reverts commit
8c043c1.

MDN has been updated in:

https://developer.mozilla.org/en-US/docs/Web/API/Console/timeEnd$compare?locale=en-US&to=947893&from=918571
https://developer.mozilla.org/en-US/docs/Web/API/Console/time$compare?locale=en-US&to=947891&from=896987

PR-URL: #3590
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

Copy link
Copy Markdown
Contributor Author

Landed in 9aee2c0.

silverwind closed this Nov 10, 2015
silverwind added a commit that referenced this pull request Nov 11, 2015
Turns out the argument is actually called label in the console spec,
while being wrongly named on MDN. This reverts commit
8c043c1.

MDN has been updated in:

https://developer.mozilla.org/en-US/docs/Web/API/Console/timeEnd$compare?locale=en-US&to=947893&from=918571
https://developer.mozilla.org/en-US/docs/Web/API/Console/time$compare?locale=en-US&to=947891&from=896987

PR-URL: #3590
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123 mentioned this pull request Nov 11, 2015

Copy link
Copy Markdown
Contributor

No need for this to land on lts as 8c043c1 never landed being part of a semver-major change

Copy link
Copy Markdown
Contributor

I documented the process of coming to this conclusion on twitter if you wish to find out more

https://twitter.com/thealphanerd/status/666385833696489473

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

console Issues and PRs related to the console subsystem. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL