GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — console: change doc to follow major browser console doc by aks- · Pull Request #3584 · nodejs/node

Conversation

@aks-

@aks- aks- commented Oct 29, 2015

Copy link
Copy Markdown
Member
  • changed node's console doc to follow the following spec doc
  • https://github.com/DeveloperToolsWG/console-object/blob/master/api.md

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Trott Trott added the console Issues and PRs related to the console subsystem. label Oct 29, 2015
@aks- aks- mentioned this pull request Oct 29, 2015
console: Add common aliases for console methods #3486
Closed
silverwind
silverwind reviewed Oct 29, 2015
View reviewed changes
Comment thread doc/api/console.markdown Outdated

@silverwind silverwind Oct 29, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We recently changed this in #3166 to match MDN. I'd say we ought to try changing the spec (which is linked on MDN, ironically).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@silverwind silverwind Oct 29, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to MDN history, it's called timerName on there since 2012 when that article was created, thought calling it label seems somewhat common too.

If we agree on calling it label, I can change it on MDN, supposedly.

cc: @targos

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@targos targos Oct 29, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@silverwind I don't really care. I changed it after your suggestion.
If you want to change it back, just run git revert 8c043c1

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@silverwind silverwind Oct 29, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, revert filed in #3590. I'm sorry for the trouble I've caused.

@aks- could you leave this rename of that argument out of this PR?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aks- aks- Oct 30, 2015

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@silverwind done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aks-
console: change doc to follow major browser console doc
d48a9c3
- changed node's console doc to follow the following spec doc
- https://github.com/DeveloperToolsWG/console-object/blob/master/api.md
@aks-
aks- force-pushed the change-doc-to-follow-major-browser-console-API branch from 8215ae2 to d48a9c3 Compare October 30, 2015 05:54
@silverwind

silverwind commented Oct 30, 2015

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos
targos reviewed Oct 30, 2015
View reviewed changes
Comment thread doc/api/console.markdown Outdated

@targos targos Oct 30, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first argument is optional too. You can call console.log() to print a blank line.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@silverwind silverwind Oct 30, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this before, Node and Firefox print an empty line, Chrome does not. Maybe it should be brought up with the spec authors?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Fishrock123 Fishrock123 Oct 30, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, what actually matters here is what Node does.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Fishrock123 Fishrock123 Oct 30, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be console.log([object, ...]), I think.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@targos targos Oct 30, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or console.log([object [, ...]]) ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@targos targos Oct 30, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like in PHP doc: http://php.net/manual/en/function.printf.php

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@silverwind

silverwind commented Oct 30, 2015

Copy link
Copy Markdown
Contributor

@Fishrock123 agree, this isn't correctly documenting how it currently works in node. I filed DeveloperToolsWG/console-object#36 to hopefully clarify what the expected behaviour is.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@domenic

domenic commented Oct 30, 2015

Copy link
Copy Markdown
Contributor

That "spec" is a reasonable attempt but not really anything normative. I would not base anything on it. Console behaviour is not really interoperable.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123

Fishrock123 commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

@domenic are you saying that our console shouldn't try to be similar to a browser console?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added the lts-watch-v4.x label Nov 3, 2015
@domenic

domenic commented Nov 4, 2015

Copy link
Copy Markdown
Contributor

It definitely should. But that document and browser console behavior are unrelated. And browsers don't really agree on console behavior in various ways.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott
Trott force-pushed the master branch from 1e896a6 to 082cc8d Compare December 27, 2015 02:00
@jasnell jasnell added the stalled Issues and PRs manually marked as stalled and scheduled for automatic closure. label Mar 22, 2016
@jasnell

jasnell commented Mar 22, 2016

Copy link
Copy Markdown
Member

Marked as stalled. Will close if there's no new activity in the next few weeks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented Apr 12, 2016

Copy link
Copy Markdown
Member

Closing due to further lack of activity. This might still be worthwhile, however, so can definitely reopen if necessary.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell closed this Apr 12, 2016
@MylesBorins MylesBorins removed the lts-watch-v4.x label Apr 16, 2016
This was referenced Dec 7, 2023
[Snyk] Fix for 1 vulnerabilities aliscco/alisco-node#1140
Open
[Snyk] Security upgrade karma from 5.2.3 to 6.0.0 aliscco/alisco-node#1146
Open
[Snyk] Security upgrade karma from 5.2.3 to 6.0.0 aliscco/alisco-node#1156
Open
@leonardoadame leonardoadame mentioned this pull request Dec 8, 2023
[Snyk] Fix for 1 vulnerabilities leonardoadame/node#567
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

console Issues and PRs related to the console subsystem. stalled Issues and PRs manually marked as stalled and scheduled for automatic closure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@aks- @silverwind @domenic @Fishrock123 @jasnell @targos @MylesBorins @Trott
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.